From 765b12cfaaf1c8e3c213030a2a16ab8a9cd8fd2d Mon Sep 17 00:00:00 2001
From: Andreas Mohr <and@gmx.li>
Date: Tue, 8 Jan 2019 06:55:21 +0000
Subject: [PATCH] setup.c: Cleanup cppcheck style warning
Found by cppcheck 1.81
[src/setup.c:1079]: (style) The scope of the variable 'buffer' can be reduced.
Signed-off-by: Andreas Mohr <and@gmx.li>
---
src/setup.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/src/setup.c b/src/setup.c
index dec1accbd..04f770ee9 100644
a
|
b
|
load_setup (void) |
1076 | 1076 | const char *profile; |
1077 | 1077 | |
1078 | 1078 | #ifdef HAVE_CHARSET |
1079 | | char *buffer; |
1080 | 1079 | const char *cbuffer; |
1081 | 1080 | |
1082 | 1081 | load_codepages_list (); |
… |
… |
load_setup (void) |
1138 | 1137 | #ifdef HAVE_CHARSET |
1139 | 1138 | if (codepages->len > 1) |
1140 | 1139 | { |
| 1140 | char *buffer; |
| 1141 | |
1141 | 1142 | buffer = |
1142 | 1143 | mc_config_get_string (mc_global.main_config, CONFIG_MISC_SECTION, "display_codepage", |
1143 | 1144 | ""); |