summaryrefslogtreecommitdiff
path: root/src/core/hook/wee-hook-modifier.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/hook/wee-hook-modifier.c')
-rw-r--r--src/core/hook/wee-hook-modifier.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/hook/wee-hook-modifier.c b/src/core/hook/wee-hook-modifier.c
index e9cb30904..af1cad1cd 100644
--- a/src/core/hook/wee-hook-modifier.c
+++ b/src/core/hook/wee-hook-modifier.c
@@ -92,7 +92,7 @@ hook_modifier_exec (struct t_weechat_plugin *plugin, const char *modifier,
/* make C compiler happy */
(void) plugin;
- if (!modifier || !modifier[0])
+ if (!modifier || !modifier[0] || !string)
return NULL;
new_msg = NULL;