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

core: return NULL immediately if string is NULL in function hook_modifier_exec

This commit is contained in:
Sébastien Helleu
2019-08-04 13:30:53 +02:00
parent c46255b1d0
commit fbc022a77a
+1 -1
View File
@@ -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;