mirror of
https://github.com/MidnightCommander/mc
synced 2025-01-08 20:41:59 +03:00
Ticket #3420: code cleanup before 3.4.15 release.
Ticket #3424: fix -Wdeclaration-after-statement compiler warnings. Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
parent
c23324013e
commit
7665a2a2e2
@ -286,6 +286,9 @@ void
|
|||||||
mc_config_init_config_paths (GError ** mcerror)
|
mc_config_init_config_paths (GError ** mcerror)
|
||||||
{
|
{
|
||||||
char *dir;
|
char *dir;
|
||||||
|
#ifndef MC_HOMEDIR_XDG
|
||||||
|
char *defined_userconf_dir;
|
||||||
|
#endif
|
||||||
|
|
||||||
mc_return_if_error (mcerror);
|
mc_return_if_error (mcerror);
|
||||||
|
|
||||||
@ -345,8 +348,6 @@ mc_config_init_config_paths (GError ** mcerror)
|
|||||||
|
|
||||||
mc_config_fix_migrated_rules ();
|
mc_config_fix_migrated_rules ();
|
||||||
#else /* MC_HOMEDIR_XDG */
|
#else /* MC_HOMEDIR_XDG */
|
||||||
char *defined_userconf_dir;
|
|
||||||
|
|
||||||
defined_userconf_dir = tilde_expand (MC_USERCONF_DIR);
|
defined_userconf_dir = tilde_expand (MC_USERCONF_DIR);
|
||||||
if (g_path_is_absolute (defined_userconf_dir))
|
if (g_path_is_absolute (defined_userconf_dir))
|
||||||
dir = defined_userconf_dir;
|
dir = defined_userconf_dir;
|
||||||
|
Loading…
Reference in New Issue
Block a user