Fix some possible null-deref warnings

This commit is contained in:
TingPing committed 2014-12-31 11:12:43 -05:00
1 parent c5016e390f
commit 112632bb4e
2 files changed
+2 -2

No files matched your search

+1 -1
View File
@@ -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 = '/';
}