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
|
|
@ -53,7 +53,7 @@ static void set_print_pattern(const char *pattern)
|
|||
|
||||
if (stristr(rec->key, pattern) == NULL)
|
||||
continue;
|
||||
if (strcmp(last_section, rec->section) != 0) {
|
||||
if (g_strcmp0(last_section, rec->section) != 0) {
|
||||
/* print section */
|
||||
printformat(NULL, NULL, MSGLEVEL_CLIENTCRAP,
|
||||
TXT_SET_TITLE, rec->section);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue