From: Andre Noll Date: Sat, 5 Mar 2016 20:30:31 +0000 (+0100) Subject: gui.c: Remove condition which is always true. X-Git-Tag: v0.5.6~54 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=33e57c3a92e4c105504832b4bb106273ffcdc2a7 gui.c: Remove condition which is always true. If top.win is NULL, curses_active() is false so we return early. --- diff --git a/gui.c b/gui.c index e9e94873..9d96e70f 100644 --- a/gui.c +++ b/gui.c @@ -776,7 +776,7 @@ static void init_curses(void) { if (curses_active()) return; - if (top.win && refresh() == ERR) /* refresh is really needed */ + if (refresh() == ERR) /* refresh is really needed */ die(EXIT_FAILURE, "refresh() failed\n"); if (LINES < theme.lines_min || COLS < theme.cols_min) die(EXIT_FAILURE, "Terminal (%dx%d) too small"