summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger.c
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2021-04-09 21:36:12 +0200
committerSébastien Helleu <flashcode@flashtux.org>2021-04-09 21:36:12 +0200
commit2e67b13edd5010a0b90398207caaad27ae7665fd (patch)
tree5477b150c664ada0c05b5cc4783a099707856b25 /src/plugins/trigger/trigger.c
parent7c5cbefd51943a4481749d989b7c47a3721095bb (diff)
downloadweechat-2e67b13edd5010a0b90398207caaad27ae7665fd.zip
trigger: check that option is not NULL in function trigger_search_with_option
Diffstat (limited to 'src/plugins/trigger/trigger.c')
-rw-r--r--src/plugins/trigger/trigger.c3
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)