mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-31 17:31:11 +02:00
zapit/src/bouquets.cpp: fix possible crash, if no channel name present in bouquets xml
Origin commit data
------------------
Branch: ni/coolstream
Commit: f8f299eadc
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2014-10-23 (Thu, 23 Oct 2014)
------------------
No further description and justification available within origin commit message!
------------------
This commit was generated by Migit
This commit is contained in:
@@ -405,7 +405,10 @@ void CBouquetManager::parseBouquetsXml(const char *fname, bool bUser)
|
||||
newBouquet->bScanEpg = scanepg ? (strcmp(scanepg, "1") == 0) : false;
|
||||
channel_node = search->xmlChildrenNode;
|
||||
while ((channel_node = xmlGetNextOccurence(channel_node, "S")) != NULL) {
|
||||
std::string name2 = xmlGetAttribute(channel_node, "n");
|
||||
std::string name2;
|
||||
name = xmlGetAttribute(channel_node, "n");
|
||||
if (name)
|
||||
name2 = name;
|
||||
char *url = xmlGetAttribute(channel_node, "u");
|
||||
GET_ATTR(channel_node, "i", SCANF_SERVICE_ID_TYPE, service_id);
|
||||
GET_ATTR(channel_node, "on", SCANF_ORIGINAL_NETWORK_ID_TYPE, original_network_id);
|
||||
|
Reference in New Issue
Block a user