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: neomutt-20170907~5^2~3 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d36b4c079fabf2b5e16cd4ef96614fcad927f4ea;p=neomutt 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 d737ca32b..a269d7833 100644 --- a/curs_lib.c +++ b/curs_lib.c @@ -740,7 +740,7 @@ int mutt_window_mvprintw(struct MuttWindow *win, int row, int col, const char *f 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);