mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-03-16 02:30:19 +00:00
Fix some possible null-deref warnings
This commit is contained in:
@@ -1311,7 +1311,7 @@ cmd_menu (struct session *sess, char *tbuf, char *word[], char *word_eol[])
|
||||
if (markup)
|
||||
{
|
||||
char *p; /* to force pango closing tags through */
|
||||
for (p = label; *p; p++)
|
||||
for (p = label; p && *p; p++)
|
||||
if (*p == 3)
|
||||
*p = '/';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user