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:
@@ -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, ',');
|
||||
|
||||
Reference in New Issue
Block a user