diff options
author | TingPing <tingping@tingping.se> | 2014-12-31 11:12:43 -0500 |
---|---|---|
committer | TingPing <tingping@tingping.se> | 2014-12-31 11:12:43 -0500 |
commit | 112632bb4ecfc54dba6346c1a9c3af9861c6a74b (patch) | |
tree | 689e7d65ce866f5df17de4abcb9c896f1ff24f66 /src/common/outbound.c | |
parent | c5016e390ff6bb4e3aa65db0b446d9cbac42994b (diff) |
Fix some possible null-deref warnings
Diffstat (limited to 'src/common/outbound.c')
-rw-r--r-- | src/common/outbound.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/common/outbound.c b/src/common/outbound.c index fe62bc2a..0df9c37c 100644 --- a/src/common/outbound.c +++ b/src/common/outbound.c @@ -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 = '/'; } |