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.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/trigger/trigger.c b/src/plugins/trigger/trigger.c
index 0377c7119..744c4b20b 100644
--- a/src/plugins/trigger/trigger.c
+++ b/src/plugins/trigger/trigger.c
@@ -1092,7 +1092,7 @@ trigger_rename (struct t_trigger *trigger, const char *name)
int length, i;
char *option_name;
- if (!name || !name[0] || !trigger_name_valid (name)
+ if (!trigger || !name || !name[0] || !trigger_name_valid (name)
|| trigger_search (name))
{
return 0;
@@ -1144,7 +1144,7 @@ trigger_rename (struct t_trigger *trigger, const char *name)
struct t_trigger *
trigger_copy (struct t_trigger *trigger, const char *name)
{
- if (!name || !name[0] || !trigger_name_valid (name)
+ if (!trigger || !name || !name[0] || !trigger_name_valid (name)
|| trigger_search (name))
{
return NULL;