summaryrefslogtreecommitdiff
path: root/src/irc/notifylist
diff options
context:
space:
mode:
authorAlexander Færøy <ahf@0x90.dk>2015-04-17 21:13:18 +0200
committerAlexander Færøy <ahf@0x90.dk>2015-04-17 21:13:18 +0200
commit03be2861dcec9e8d088be6a0cae2848388923dab (patch)
tree2355318b525a4bbae3c1651ab37f89901500b2ab /src/irc/notifylist
parentef5ac430c75a3a551991aff8dae08ceeaca25d3f (diff)
parent9890daca797b31d34d97d953c512378aabe3d51f (diff)
downloadirssi-03be2861dcec9e8d088be6a0cae2848388923dab.zip
Merge pull request #235 from dequis/g_strcmp0
Change all strcmp() to g_strcmp0() to handle nulls gracefully
Diffstat (limited to 'src/irc/notifylist')
-rw-r--r--src/irc/notifylist/notifylist.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/irc/notifylist/notifylist.c b/src/irc/notifylist/notifylist.c
index b0b7ee1c..573f7a7f 100644
--- a/src/irc/notifylist/notifylist.c
+++ b/src/irc/notifylist/notifylist.c
@@ -91,7 +91,7 @@ int notifylist_ircnets_match(NOTIFYLIST_REC *rec, const char *ircnet)
if (rec->ircnets == NULL) return TRUE;
if (ircnet == NULL) return FALSE;
- if (strcmp(ircnet, "*") == 0) return TRUE;
+ if (g_strcmp0(ircnet, "*") == 0) return TRUE;
for (tmp = rec->ircnets; *tmp != NULL; tmp++) {
if (g_ascii_strcasecmp(*tmp, ircnet) == 0)