From ba69f721160fe4f0d3abb0aaa48e26f6ceeaf2ff Mon Sep 17 00:00:00 2001 From: Enno Rehling Date: Thu, 5 Nov 2015 08:40:09 +0100 Subject: [PATCH] CID 22502 Argument cannot be negative these curses macros are hard to decipher, I think this may be a kind of false positive because stdscr is always not-null? --- src/gmtool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gmtool.c b/src/gmtool.c index 5929eea0b..fb55eae9a 100644 --- a/src/gmtool.c +++ b/src/gmtool.c @@ -1245,7 +1245,7 @@ void run_mapper(void) curs_set(1); set_readline(curses_readline); - + assert(stdscr); getbegyx(stdscr, x, y); width = getmaxx(stdscr); height = getmaxy(stdscr);