]> git.tuebingen.mpg.de Git - paraslash.git/commitdiff
gui.c: Remove condition which is always true.
authorAndre Noll <maan@tuebingen.mpg.de>
Sat, 5 Mar 2016 20:30:31 +0000 (21:30 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sun, 13 Mar 2016 17:11:32 +0000 (18:11 +0100)
If top.win is NULL, curses_active() is false so we return early.

gui.c

diff --git a/gui.c b/gui.c
index e9e94873ae28f0963d355fe6d40683f78b6f2f41..9d96e70f6949362b39b50fa1dc23e85327a9316a 100644 (file)
--- a/gui.c
+++ b/gui.c
@@ -776,7 +776,7 @@ static void init_curses(void)
 {
        if (curses_active())
                return;
 {
        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"
                die(EXIT_FAILURE, "refresh() failed\n");
        if (LINES < theme.lines_min || COLS < theme.cols_min)
                die(EXIT_FAILURE, "Terminal (%dx%d) too small"