diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-20 10:04:40 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2020-06-20 10:04:40 +0200 |
commit | 2a60a25443d4688e8096aaf95dc8f76c7655f0f4 (patch) | |
tree | aa66ebd324739b79c3c2d52c33ec49d6e33b8e95 /src/plugins/irc/irc-info.c | |
parent | 86cb2d425659a773c43f0bf3bd30ea2c02b1254c (diff) | |
download | weechat-2a60a25443d4688e8096aaf95dc8f76c7655f0f4.zip |
irc: return NULL in info "irc_is_channel" if arguments is NULL or empty string
Diffstat (limited to 'src/plugins/irc/irc-info.c')
-rw-r--r-- | src/plugins/irc/irc-info.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/irc/irc-info.c b/src/plugins/irc/irc-info.c index 2faadb762..a933ac366 100644 --- a/src/plugins/irc/irc-info.c +++ b/src/plugins/irc/irc-info.c @@ -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, ','); |