mirror of
https://github.com/irssi/irssi.git
synced 2026-08-18 08:02:13 +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
|
|
@ -167,7 +167,7 @@ static GSList *servers_find_chatnet_except(SERVER_REC *server)
|
|||
SERVER_REC *rec = tmp->data;
|
||||
|
||||
if (server != rec && rec->connrec->chatnet != NULL &&
|
||||
strcmp(server->connrec->chatnet,
|
||||
g_strcmp0(server->connrec->chatnet,
|
||||
rec->connrec->chatnet) == 0) {
|
||||
/* chatnets match */
|
||||
list = g_slist_append(list, rec);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue