From 4d9e8668bb9c4889752b50b20561ab61bea8d12f Mon Sep 17 00:00:00 2001 From: Sebastien Helleu Date: Tue, 16 Aug 2011 12:01:36 +0200 Subject: [PATCH] core: fix crash with "hook" infolist when "arguments" is an empty string --- src/core/wee-hook.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)