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
|
|
@ -57,7 +57,7 @@ static void sig_dcc_request(GET_DCC_REC *dcc, const char *nickaddr)
|
|||
/* don't autoget files beginning with a dot, if download dir is
|
||||
our home dir (stupid kludge for stupid people) */
|
||||
if (*dcc->arg == '.' &&
|
||||
strcmp(settings_get_str("dcc_download_path"), "~") == 0)
|
||||
g_strcmp0(settings_get_str("dcc_download_path"), "~") == 0)
|
||||
return;
|
||||
|
||||
/* check file size limit, NOTE: it's still possible to send a
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue