1
0
mirror of https://github.com/weechat/weechat.git synced 2026-07-01 23:36:37 +02:00

irc: return NULL in info "irc_is_channel" if arguments is NULL or empty string

This commit is contained in:
Sébastien Helleu
2020-06-20 10:04:40 +02:00
parent 86cb2d4256
commit 2a60a25443
+3
View File
@@ -78,6 +78,9 @@ irc_info_info_irc_is_channel_cb (const void *pointer, void *data,
(void) data;
(void) info_name;
if (!arguments || !arguments[0])
return NULL;
ptr_server = NULL;
pos_channel = arguments;
pos_comma = strchr (arguments, ',');