summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-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 485fda2c2..9d624dcdd 100644
--- a/src/plugins/trigger/trigger.c
+++ b/src/plugins/trigger/trigger.c
@@ -482,6 +482,9 @@ trigger_regex_free (int *regex_count, struct t_trigger_regex **regex)
{
int i;
+ if (!regex_count || !regex)
+ return;
+
if (*regex_count > 0)
{
for (i = 0; i < *regex_count; i++)