From 7665a2a2e25bc39d394e208dbeb1409f0f311933 Mon Sep 17 00:00:00 2001 From: Andreas Mohr Date: Tue, 31 Mar 2015 20:27:07 +0300 Subject: [PATCH] Ticket #3420: code cleanup before 3.4.15 release. Ticket #3424: fix -Wdeclaration-after-statement compiler warnings. Signed-off-by: Andrew Borodin --- lib/mcconfig/paths.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/lib/mcconfig/paths.c b/lib/mcconfig/paths.c index 5527267c6..d2f9e9a8a 100644 --- a/lib/mcconfig/paths.c +++ b/lib/mcconfig/paths.c @@ -286,6 +286,9 @@ void mc_config_init_config_paths (GError ** mcerror) { char *dir; +#ifndef MC_HOMEDIR_XDG + char *defined_userconf_dir; +#endif mc_return_if_error (mcerror); @@ -345,8 +348,6 @@ mc_config_init_config_paths (GError ** mcerror) mc_config_fix_migrated_rules (); #else /* MC_HOMEDIR_XDG */ - char *defined_userconf_dir; - defined_userconf_dir = tilde_expand (MC_USERCONF_DIR); if (g_path_is_absolute (defined_userconf_dir)) dir = defined_userconf_dir;