summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastien Helleu <flashcode@flashtux.org>2011-08-16 12:01:36 +0200
committerSebastien Helleu <flashcode@flashtux.org>2011-08-16 12:01:36 +0200
commit4d9e8668bb9c4889752b50b20561ab61bea8d12f (patch)
treea305f67404a7d2f51afba4198f9860ce334d39b3
parent6c24da222c8eb845d0a5c7c8a00ef0188e72db63 (diff)
downloadweechat-4d9e8668bb9c4889752b50b20561ab61bea8d12f.zip
core: fix crash with "hook" infolist when "arguments" is an empty string
-rw-r--r--src/core/wee-hook.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/wee-hook.c b/src/core/wee-hook.c
index cd1e2d7c3..99f33230e 100644
--- a/src/core/wee-hook.c
+++ b/src/core/wee-hook.c
@@ -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)