diff options
author | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-09 21:36:12 +0200 |
---|---|---|
committer | Sébastien Helleu <flashcode@flashtux.org> | 2021-04-09 21:36:12 +0200 |
commit | 2e67b13edd5010a0b90398207caaad27ae7665fd (patch) | |
tree | 5477b150c664ada0c05b5cc4783a099707856b25 /src/plugins | |
parent | 7c5cbefd51943a4481749d989b7c47a3721095bb (diff) | |
download | weechat-2e67b13edd5010a0b90398207caaad27ae7665fd.zip |
trigger: check that option is not NULL in function trigger_search_with_option
Diffstat (limited to 'src/plugins')
-rw-r--r-- | src/plugins/trigger/trigger.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c index 69971848d..24e023078 100644 --- a/src/plugins/trigger/trigger.c +++ b/src/plugins/trigger/trigger.c @@ -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) |