mirror of
https://github.com/irssi/irssi.git
synced 2026-08-20 09:02:13 +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
|
|
@ -170,7 +170,7 @@ static void cmd_load(const char *data, SERVER_REC *server, void *item)
|
|||
return;
|
||||
|
||||
len = strlen(rootmodule);
|
||||
if (len > 3 && strcmp(rootmodule + len - 3, ".pl") == 0) {
|
||||
if (len > 3 && g_strcmp0(rootmodule + len - 3, ".pl") == 0) {
|
||||
/* make /LOAD script.pl work as expected */
|
||||
signal_stop();
|
||||
cmd_script_load(data);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue