summaryrefslogtreecommitdiff
path: root/src/fe-common
diff options
context:
space:
mode:
authorDavid Hill <dhill@conformal.com>2014-07-12 16:35:42 -0400
committerDavid Hill <dhill@conformal.com>2014-07-12 16:35:42 -0400
commit6e45d683991a3269c3cfe63d981bddcd92da0406 (patch)
tree7993fd384a96e00bbd6277da80a83ce80eb87189 /src/fe-common
parent9fd1e2f5dadcf491755e0de26871c4a1a5c35394 (diff)
downloadirssi-6e45d683991a3269c3cfe63d981bddcd92da0406.zip
Avoid using uninitalized values.
Diffstat (limited to 'src/fe-common')
-rw-r--r--src/fe-common/core/fe-messages.c2
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)) {