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