trigger: check that option is not NULL in function trigger_search_with_option
This commit is contained in:
parent
7c5cbefd51
commit
2e67b13edd
@ -208,6 +208,9 @@ trigger_search_with_option (struct t_config_option *option)
|
||||
char *pos_option;
|
||||
struct t_trigger *ptr_trigger;
|
||||
|
||||
if (!option)
|
||||
return NULL;
|
||||
|
||||
ptr_name = weechat_hdata_string (weechat_hdata_get ("config_option"),
|
||||
option, "name");
|
||||
if (!ptr_name)
|
||||
|
Loading…
x
Reference in New Issue
Block a user