CAudioPlayerGui: move scope of char *type

scope can be reduced


Origin commit data
------------------
Branch: ni/coolstream
Commit: 4d213e9ed9
Author: Thilo Graf <dbt@novatux.de>
Date: 2013-12-02 (Mon, 02 Dec 2013)



------------------
This commit was generated by Migit
This commit is contained in:
2013-12-02 21:51:41 +01:00
parent ceef902fbb
commit c3f1cb07b2

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)