mirror of
https://github.com/irssi/irssi.git
synced 2026-08-19 16:42:30 +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
|
|
@ -105,7 +105,7 @@ void config_node_set_str(CONFIG_REC *rec, CONFIG_NODE *parent, const char *key,
|
|||
}
|
||||
|
||||
if (node != NULL) {
|
||||
if (strcmp(node->value, value) == 0)
|
||||
if (g_strcmp0(node->value, value) == 0)
|
||||
return;
|
||||
g_free(node->value);
|
||||
} else {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue