Skip to content

Commit

Permalink
Fix nullptr initialisation
Browse files Browse the repository at this point in the history
  • Loading branch information
phunkyfish committed Aug 18, 2019
1 parent 53d179c commit 77bbd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/PVRIptvData.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down

0 comments on commit 77bbd68

Please sign in to comment.