diff options
author | David Hill <dhill@conformal.com> | 2014-07-12 16:35:42 -0400 |
---|---|---|
committer | David Hill <dhill@conformal.com> | 2014-07-12 16:35:42 -0400 |
commit | 6e45d683991a3269c3cfe63d981bddcd92da0406 (patch) | |
tree | 7993fd384a96e00bbd6277da80a83ce80eb87189 /src/fe-common | |
parent | 9fd1e2f5dadcf491755e0de26871c4a1a5c35394 (diff) | |
download | irssi-6e45d683991a3269c3cfe63d981bddcd92da0406.zip |
Avoid using uninitalized values.
Diffstat (limited to 'src/fe-common')
-rw-r--r-- | src/fe-common/core/fe-messages.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-common/core/fe-messages.c b/src/fe-common/core/fe-messages.c index fcc55a67..56fe89f8 100644 --- a/src/fe-common/core/fe-messages.c +++ b/src/fe-common/core/fe-messages.c @@ -82,7 +82,7 @@ char *expand_emphasis(WI_ITEM_REC *item, const char *text) continue; if (!ishighalnum(end[-1]) || ishighalnum(end[1]) || end[1] == type || end[1] == '*' || end[1] == '_' || - (type == 29 && end[1] != NULL && ishighalnum(end[2]))) + (type == 29 && end[1] != '\0' && ishighalnum(end[2]))) continue; if (IS_CHANNEL(item)) { |