mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 17:12:51 +02:00
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
This commit is contained in:
parent
9ffe52ec5e
commit
f14199d9c1
57 changed files with 170 additions and 170 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue