From: Kevin McCarthy Date: Mon, 4 Sep 2017 16:40:44 +0000 (-0700) Subject: Fix rv assignment in mutt_window_mvprintw(). (closes #3964) X-Git-Tag: mutt-1-9-1-rel~7 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d6779597f4707453e9b4cacffa1e9e8ef8b482e8;p=mutt Fix rv assignment in mutt_window_mvprintw(). (closes #3964) Mutt doesn't check the return value, so this wasn't causing a bug, but was incorrect. Thanks to dcb314 for reporting the issue. --- diff --git a/curs_lib.c b/curs_lib.c index 1a2bb9e9..ecac6d95 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -665,7 +665,7 @@ int mutt_window_mvprintw (mutt_window_t *win, int row, int col, const char *fmt, va_list ap; int rv; - if ((rv = mutt_window_move (win, row, col) != ERR)) + if ((rv = mutt_window_move (win, row, col)) != ERR) { va_start (ap, fmt); rv = vw_printw (stdscr, fmt, ap);