(load_setup): reduce variable scope.

Found by cppcheck 1.81.

Signed-off-by: Andreas Mohr <and@gmx.li>
Signed-off-by: Andrew Borodin <aborodin@vmail.ru>
This commit is contained in:
Andreas Mohr 2019-01-08 06:55:21 +00:00 committed by Andrew Borodin
parent cedf33301a
commit 2153fa8b61

View File

@ -1077,7 +1077,6 @@ load_setup (void)
const char *profile;
#ifdef HAVE_CHARSET
char *buffer;
const char *cbuffer;
load_codepages_list ();
@ -1139,6 +1138,8 @@ load_setup (void)
#ifdef HAVE_CHARSET
if (codepages->len > 1)
{
char *buffer;
buffer =
mc_config_get_string (mc_global.main_config, CONFIG_MISC_SECTION, "display_codepage",
"");