summaryrefslogtreecommitdiff
path: root/src/plugins/trigger/trigger-callback.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/trigger/trigger-callback.c')
-rw-r--r--src/plugins/trigger/trigger-callback.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index ea67af15f..46daf56e6 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -981,8 +981,7 @@ end:
string_modified = (ptr_string && (strcmp (ptr_string, string) != 0)) ?
strdup (ptr_string) : NULL;
- if (tags)
- weechat_string_free_split (tags);
+ weechat_string_free_split (tags);
free (string_no_color);
TRIGGER_CALLBACK_CB_END(string_modified);
@@ -1120,8 +1119,7 @@ trigger_callback_line_cb (const void *pointer, void *data,
}
end:
- if (tags)
- weechat_string_free_split (tags);
+ weechat_string_free_split (tags);
TRIGGER_CALLBACK_CB_END(hashtable);
}