From ec169f535d97fc0c431df1e1c7e4d3172ad08a78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Helleu?= Date: Sun, 14 Jan 2018 15:08:01 +0100 Subject: core: reinitialize config file pointer to NULL after an error on section creation --- src/plugins/trigger/trigger-config.c | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/plugins/trigger') 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; } -- cgit v1.2.3