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 *ptr = NULL;
char *name = NULL; char *name = NULL;
char *url = NULL; char *url = NULL;
char *type = NULL;
time_t bitrate = 0; time_t bitrate = 0;
bool skip = true; bool skip = true;
listPos++; listPos++;
@@ -1208,6 +1207,7 @@ void CAudioPlayerGui::scanXmlData(xmlDocPtr answer_parser, const char *nametag,
#endif // LCD_UPDATE #endif // LCD_UPDATE
if (usechild) { if (usechild) {
char *type = NULL;
xmlNodePtr child = element->xmlChildrenNode; xmlNodePtr child = element->xmlChildrenNode;
while (child) { while (child) {
if (strcmp(xmlGetName(child), nametag) == 0) if (strcmp(xmlGetName(child), nametag) == 0)