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
+2
View File
@@ -932,6 +932,8 @@ mesg_add_line(const char *mline)
} else {
/* instead of discarding list element being forced out, reuse it */
current_mesg = first_mesg;
assert(current_mesg != NULL);
assert(current_mesg->str != NULL);
/* whenever new 'mline' is shorter, extra allocation size of the
original element will be frittered away, until eventually we'll
discard this 'str' and dupstr() a replacement; we could easily