summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger.c
diff options
context:
space:
mode:
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)