From 4d213e9ed930bf86ffa644cd0bfd3e23f79bf6c7 Mon Sep 17 00:00:00 2001 From: Thilo Graf Date: Mon, 2 Dec 2013 21:51:41 +0100 Subject: [PATCH] CAudioPlayerGui: move scope of char *type scope can be reduced --- src/gui/audioplayer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gui/audioplayer.cpp b/src/gui/audioplayer.cpp index 3180513c9..ceae77bee 100644 --- a/src/gui/audioplayer.cpp +++ b/src/gui/audioplayer.cpp @@ -1195,7 +1195,6 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag, char *ptr = NULL; char *name = NULL; char *url = NULL; - char *type = NULL; time_t bitrate = 0; bool skip = true; listPos++; @@ -1208,6 +1207,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag, #endif // LCD_UPDATE if (usechild) { + char *type = NULL; xmlNodePtr child = element->xmlChildrenNode; while (child) { if (strcmp(xmlGetName(child), nametag) == 0)