From 2009c72baa77bc024d80cd6ba6d453ffb3ae4f33 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Fri, 1 Jul 2016 08:54:31 +0200 Subject: [PATCH] config_replace - do early return if global is NULL --- configuration.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/configuration.c b/configuration.c index e29e50f7fe..a88f4c9058 100644 --- a/configuration.c +++ b/configuration.c @@ -3157,7 +3157,7 @@ bool config_replace(char *path) settings_t *settings = config_get_ptr(); global_t *global = global_get_ptr(); - if (!path) + if (!path || !global) return false; /* If config file to be replaced is the same as the