From f14199d9c15a8062b5663fa6fcdae00390473b15 Mon Sep 17 00:00:00 2001 From: dequis Date: Tue, 7 Apr 2015 22:39:05 -0300 Subject: Change all strcmp() to g_strcmp0() to handle nulls gracefully Just a string replacement (but i did check every one of them) sed -i 's/strcmp(/g_strcmp0(/g' **/*.c --- src/core/servers-reconnect.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/core/servers-reconnect.c') diff --git a/src/core/servers-reconnect.c b/src/core/servers-reconnect.c index d99a5405..d7660110 100644 --- a/src/core/servers-reconnect.c +++ b/src/core/servers-reconnect.c @@ -384,7 +384,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) { -- cgit v1.2.3