From 412df342987f754958a9756817ccacaebe07f764 Mon Sep 17 00:00:00 2001 From: Chris Young Date: Sat, 5 Apr 2014 19:29:27 +0100 Subject: Fix some cppcheck variableScope warnings --- amiga/gui.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'amiga/gui.c') diff --git a/amiga/gui.c b/amiga/gui.c index 5c707c5ca..b893b6f2f 100644 --- a/amiga/gui.c +++ b/amiga/gui.c @@ -251,13 +251,12 @@ static bool path_add_part(char *path, int length, const char *newpart) STRPTR ami_locale_langs(void) { struct Locale *locale; - STRPTR acceptlangs = NULL, acceptlangs2 = NULL; - int i; + STRPTR acceptlangs = NULL; char *remapped; if(locale = OpenLocale(NULL)) { - for(i=0;i<10;i++) + for(int i = 0; i < 10; i++) { if(locale->loc_PrefLanguages[i]) { @@ -266,7 +265,7 @@ STRPTR ami_locale_langs(void) { if(acceptlangs) { - acceptlangs2 = acceptlangs; + STRPTR acceptlangs2 = acceptlangs; acceptlangs = ASPrintf("%s, %s",acceptlangs2, remapped); FreeVec(acceptlangs2); acceptlangs2 = NULL; -- cgit v1.2.3