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:
+1
-1
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user