last analyzer bit for win/curses/cursmesg.c

I got confused and thought that this one (actually pair) was more
complicated than it actually is.  have_mixed_leadin is used in an
ordinary way, but resetting it to false happens in spots where it
can't be used again.  The analyzer complains that the assignments
don't do anything useful.
This commit is contained in:
PatR
2025-01-23 17:30:27 -08:00
parent 349f3871be
commit 6ac0be46f6

View File

@@ -213,8 +213,9 @@ curses_message_win_puts(const char *message, boolean recursed)
mvwadd_wch(win, my, mx, mixed_leadin_cchar);
++mx;
message_length--;
have_mixed_leadin = FALSE;
mesg_mixed = 0;
have_mixed_leadin = FALSE;
nhUse(have_mixed_leadin);
}
#endif
mvwprintw(win, my, mx, "%s", tmpstr), mx += (int) strlen(tmpstr);
@@ -234,8 +235,9 @@ curses_message_win_puts(const char *message, boolean recursed)
mvwadd_wch(win, my, mx, mixed_leadin_cchar);
++mx;
message_length--;
have_mixed_leadin = FALSE;
mesg_mixed = 0;
have_mixed_leadin = FALSE;
nhUse(have_mixed_leadin);
}
#endif
mvwprintw(win, my, mx, "%s", message), mx += message_length;