summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJochen Dolze <vdr@dolze.de>2012-08-27 19:50:09 +0200
committerJochen Dolze <vdr@dolze.de>2012-08-27 19:50:09 +0200
commit689cfc10b1f73f6972c408e5973854c70a93b4c8 (patch)
treef76aba4ff3209fa10732c0001541e4e9d35d7367
parent86a81408bc8cc80e16b776a9661f3db509bd1243 (diff)
downloadvdr-plugin-xmltv2vdr-689cfc10b1f73f6972c408e5973854c70a93b4c8.tar.gz
vdr-plugin-xmltv2vdr-689cfc10b1f73f6972c408e5973854c70a93b4c8.tar.bz2
Prevent uninitialised values for season, episode or overallepisode getting into the epg
-rw-r--r--parse.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/parse.cpp b/parse.cpp
index 4e24941..011714b 100644
--- a/parse.cpp
+++ b/parse.cpp
@@ -161,7 +161,11 @@ bool cParse::FetchSeasonEpisode(iconv_t cEP2ASCII, iconv_t cUTF2ASCII, const cha
int &Season, int &Episode, int &EpisodeOverall, char **EPShortText,
char **EPTitle)
{
- // Title and ShortText are always UTF8 !
+Season=0;
+Episode=0;
+EpisodeOverall=0;
+
+ // Title and ShortText are always UTF8 !
if (!EPDir) return false;
if (!Title) return false;
if (cEP2ASCII==(iconv_t) -1) return false;