mirror of
https://github.com/irssi/irssi.git
synced 2026-08-10 20:33:46 +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
|
|
@ -45,7 +45,7 @@ static const char *fe_recode_get_target (WI_ITEM_REC *witem)
|
|||
|
||||
static int fe_recode_compare_func (CONFIG_NODE *node1, CONFIG_NODE *node2)
|
||||
{
|
||||
return strcmp(node1->key, node2->key);
|
||||
return g_strcmp0(node1->key, node2->key);
|
||||
}
|
||||
|
||||
/* SYNTAX: RECODE */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue