mirror of
https://github.com/MidnightCommander/mc
synced 2024-12-22 20:36:50 +03:00
(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:
parent
cedf33301a
commit
2153fa8b61
@ -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",
|
||||
"");
|
||||
|
Loading…
Reference in New Issue
Block a user