diff options
author | Jochen Dolze <vdr@dolze.de> | 2012-08-27 19:50:09 +0200 |
---|---|---|
committer | Jochen Dolze <vdr@dolze.de> | 2012-08-27 19:50:09 +0200 |
commit | 689cfc10b1f73f6972c408e5973854c70a93b4c8 (patch) | |
tree | f76aba4ff3209fa10732c0001541e4e9d35d7367 | |
parent | 86a81408bc8cc80e16b776a9661f3db509bd1243 (diff) | |
download | vdr-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.cpp | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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; |