From a27fb18e34f68e30e5276cd238ebb6362ba280be Mon Sep 17 00:00:00 2001 From: "[CST] Focus" Date: Fri, 18 Jan 2013 12:31:28 +0400 Subject: [PATCH] zapit/src/getservices.cpp: fix uninitialized warnings --- src/zapit/src/getservices.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/zapit/src/getservices.cpp b/src/zapit/src/getservices.cpp index f6e8b2368..d58852c58 100644 --- a/src/zapit/src/getservices.cpp +++ b/src/zapit/src/getservices.cpp @@ -598,7 +598,7 @@ bool CServiceManager::LoadScanXml(fe_type_t delsys) { if (ParseScanXml(delsys)) { /* fake position for non-satellite */ - t_satellite_position position; + t_satellite_position position = 0; xmlNodePtr search = xmlDocGetRootElement(scanInputParser)->xmlChildrenNode; while (search) { @@ -929,7 +929,7 @@ bool CServiceManager::SaveCurrentServices(transponder_id_t tpid) return false; } - const char * footer; + const char * footer = ""; switch (tI->second.deltype) { case FE_QPSK: /* satellite */ sprintf(satstr, "\t<%s name=\"%s\" position=\"%hd\">\n", "sat", spos_it->second.name.c_str(), satellitePosition);