summaryrefslogtreecommitdiff
path: root/src/plugins/trigger
diff options
context:
space:
mode:
authorSébastien Helleu <flashcode@flashtux.org>2018-01-14 15:08:01 +0100
committerSébastien Helleu <flashcode@flashtux.org>2018-01-14 21:47:18 +0100
commitec169f535d97fc0c431df1e1c7e4d3172ad08a78 (patch)
treeb5ae4d952386c8e55ce574ac36b1876a3b70e428 /src/plugins/trigger
parenteb0560812bd2f4ddb68353e7dc5427c60397463d (diff)
downloadweechat-ec169f535d97fc0c431df1e1c7e4d3172ad08a78.zip
core: reinitialize config file pointer to NULL after an error on section creation
Diffstat (limited to 'src/plugins/trigger')
-rw-r--r--src/plugins/trigger/trigger-config.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/plugins/trigger/trigger-config.c b/src/plugins/trigger/trigger-config.c
index c0a4bead8..8edd61b79 100644
--- a/src/plugins/trigger/trigger-config.c
+++ b/src/plugins/trigger/trigger-config.c
@@ -661,6 +661,7 @@ trigger_config_init ()
if (!ptr_section)
{
weechat_config_free (trigger_config_file);
+ trigger_config_file = NULL;
return 0;
}
@@ -690,6 +691,7 @@ trigger_config_init ()
if (!ptr_section)
{
weechat_config_free (trigger_config_file);
+ trigger_config_file = NULL;
return 0;
}
@@ -761,6 +763,7 @@ trigger_config_init ()
if (!ptr_section)
{
weechat_config_free (trigger_config_file);
+ trigger_config_file = NULL;
return 0;
}