mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 04:13:32 +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
|
|
@ -161,7 +161,7 @@ static PROCESS_REC *process_find(const char *name, int verbose)
|
|||
for (tmp = processes; tmp != NULL; tmp = tmp->next) {
|
||||
PROCESS_REC *rec = tmp->data;
|
||||
|
||||
if (rec->name != NULL && strcmp(rec->name, name) == 0)
|
||||
if (rec->name != NULL && g_strcmp0(rec->name, name) == 0)
|
||||
return rec;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue