mirror of
https://github.com/irssi/irssi.git
synced 2026-08-17 23:52:22 +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
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue