]> granicus.if.org Git - mutt/commitdiff
Fix rv assignment in mutt_window_mvprintw(). (closes #3964)
authorKevin McCarthy <kevin@8t8.us>
Mon, 4 Sep 2017 16:40:44 +0000 (09:40 -0700)
committerKevin McCarthy <kevin@8t8.us>
Mon, 4 Sep 2017 16:40:44 +0000 (09:40 -0700)
Mutt doesn't check the return value, so this wasn't causing a bug, but
was incorrect.

Thanks to dcb314 for reporting the issue.

curs_lib.c

index 1a2bb9e9c0f8a3789056cffaf602d7418d5805e3..ecac6d95d2a8b15e9f539c688b03209093aea9b2 100644 (file)
@@ -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);