summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2022-11-19 20:29:02 +0100
committerSébastien Helleu <flashcode@flashtux.org>2022-11-19 20:29:02 +0100
commitb636f55b8b6776d999f64d54d6c478ddde7a2e36 (patch)
treedf1ba91f2c43b46b5d9a3c22e36d4f0075eac015
parent11a5e0a6271dcdb1bc9dbbfa6115d4b482b9cdd7 (diff)
downloadweechat-b636f55b8b6776d999f64d54d6c478ddde7a2e36.zip
trigger: properly initialize variable "value" to NULL
-rw-r--r--src/plugins/trigger/trigger-callback.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-callback.c b/src/plugins/trigger/trigger-callback.c
index fab098fb1..9188cc1b3 100644
--- a/src/plugins/trigger/trigger-callback.c
+++ b/src/plugins/trigger/trigger-callback.c
@@ -357,6 +357,7 @@ trigger_callback_regex (struct t_trigger *trigger,
const char *ptr_key, *ptr_value;
int i, pointers_allocated;
+ value = NULL;
pointers_allocated = 0;
if (trigger->regex_count == 0)