summaryrefslogtreecommitdiff
path: root/src/core/servers-reconnect.c
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/core/servers-reconnect.c
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/core/servers-reconnect.c')
-rw-r--r--src/core/servers-reconnect.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c
index f9f82a13..ae97ecd2 100644
--- a/src/core/servers-reconnect.c
+++ b/src/core/servers-reconnect.c
@@ -385,7 +385,7 @@ static void cmd_reconnect(const char *data, SERVER_REC *server)
if (!cmd_get_params(data, &free_arg, 2 | PARAM_FLAG_GETREST, &tag, &msg))
return;
- if (*tag != '\0' && strcmp(tag, "*") != 0)
+ if (*tag != '\0' && g_strcmp0(tag, "*") != 0)
server = server_find_tag(tag);
if (server != NULL) {