From 77bbd6873072fb1f9f390422b07de3baba5362c2 Mon Sep 17 00:00:00 2001 From: Ross Nicholson Date: Sun, 18 Aug 2019 20:37:25 +0100 Subject: [PATCH] Fix nullptr initialisation --- src/PVRIptvData.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;