analyzer lint for win/curses/*.c

There is still an issue in cursmesg.c.

The last diff band (curses_putch) isn't related to static analysis.
This commit is contained in:
PatR
2025-01-23 13:52:19 -08:00
parent 29f7580fc1
commit 150b331189
4 changed files with 21 additions and 13 deletions
+1
View File
@@ -173,6 +173,7 @@ curses_status_update(
/* decode once instead of every time it's displayed */
status_vals[BL_GOLD][0] = ' ';
text = decode_mixed(&status_vals[BL_GOLD][1], text);
nhUse(text);
} else if ((fldidx == BL_HUNGER || fldidx == BL_CAP)
&& (!*text || !strcmp(text, " "))) {
/* fieldfmt[] is " %s"; avoid lone space when empty */