From f4e1ffeabfbe5ae522d0080f9d654469342e1d31 Mon Sep 17 00:00:00 2001 From: twinaphex Date: Sat, 17 Sep 2016 13:42:48 +0200 Subject: [PATCH] Don't access global->path.config directly --- configuration.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/configuration.c b/configuration.c index 1bc491c5d7..dc141006e2 100644 --- a/configuration.c +++ b/configuration.c @@ -1302,8 +1302,12 @@ static void config_set_defaults(void) sizeof(settings->directory.content_history)); if (!string_is_empty(g_defaults.path.config)) - fill_pathname_expand_special(global->path.config, - g_defaults.path.config, sizeof(global->path.config)); + { + char temp_str[PATH_MAX_LENGTH]; + fill_pathname_expand_special(temp_str, + g_defaults.path.config, sizeof(temp_str)); + path_set_config(temp_str); + } /* Avoid reloading config on every content load */ if (default_block_config_read)