1
0
mirror of https://github.com/weechat/weechat.git synced 2026-06-30 23:06:38 +02:00

core: fix crash with "hook" infolist when "arguments" is an empty string

This commit is contained in:
Sebastien Helleu
2011-08-16 12:01:36 +02:00
parent 6c24da222c
commit 4d9e8668bb
+1 -1
View File
@@ -3637,7 +3637,7 @@ hook_add_to_infolist (struct t_infolist *infolist, const char *arguments)
type = NULL;
pos_arguments = NULL;
if (arguments)
if (arguments && arguments[0])
{
pos_arguments = strchr (arguments, ',');
if (pos_arguments)