mirror of
https://github.com/irssi/irssi.git
synced 2026-08-11 21:00:40 +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
|
|
@ -178,7 +178,7 @@ static void sig_message_irc_action(IRC_SERVER_REC *server, const char *msg,
|
|||
if (ischannel(*target)) {
|
||||
item = irc_channel_find(server, target);
|
||||
} else {
|
||||
own = (!strcmp(nick, server->nick));
|
||||
own = (!g_strcmp0(nick, server->nick));
|
||||
item = privmsg_get_query(SERVER(server), own ? target : nick, FALSE, level);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue