CAudioPlayerGui: move scope of char *type

scope can be reduced
This commit is contained in:
2013-12-02 21:51:41 +01:00
parent 074713bb29
commit 4d213e9ed9

View File

@@ -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)