From 2e67b13edd5010a0b90398207caaad27ae7665fd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Fri, 9 Apr 2021 21:36:12 +0200 Subject: trigger: check that option is not NULL in function trigger_search_with_option --- src/plugins/trigger/trigger.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/trigger/trigger.c') 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) -- cgit v1.2.3