diff --git a/pvr.iptvsimple/addon.xml.in b/pvr.iptvsimple/addon.xml.in index ffda48269..baf23a4c2 100644 --- a/pvr.iptvsimple/addon.xml.in +++ b/pvr.iptvsimple/addon.xml.in @@ -1,7 +1,7 @@ @ADDON_DEPENDS@ diff --git a/pvr.iptvsimple/changelog.txt b/pvr.iptvsimple/changelog.txt index 46f440457..b03eefbb7 100644 --- a/pvr.iptvsimple/changelog.txt +++ b/pvr.iptvsimple/changelog.txt @@ -1,3 +1,6 @@ +v4.2.1 +- Fix nullptr initialisation + v4.2.0 - Add support for sub-title/actor/director/writer in XML diff --git a/src/PVRIptvData.cpp b/src/PVRIptvData.cpp index 7d8510243..637121da9 100644 --- a/src/PVRIptvData.cpp +++ b/src/PVRIptvData.cpp @@ -250,7 +250,7 @@ bool PVRIptvData::LoadEPG(time_t iStart, time_t iEnd) m_epg.clear(); int iBroadCastId = 0; - xml_node<>* pChannelNode; + xml_node<>* pChannelNode = nullptr; for (pChannelNode = pRootElement->first_node("channel"); pChannelNode; pChannelNode = pChannelNode->next_sibling("channel")) { std::string strName; @@ -296,7 +296,7 @@ bool PVRIptvData::LoadEPG(time_t iStart, time_t iEnd) } } - PVRIptvEpgChannel* epg; + PVRIptvEpgChannel* epg = nullptr; for (pChannelNode = pRootElement->first_node("programme"); pChannelNode; pChannelNode = pChannelNode->next_sibling("programme")) { std::string strId;