From 689cfc10b1f73f6972c408e5973854c70a93b4c8 Mon Sep 17 00:00:00 2001 From: Jochen Dolze Date: Mon, 27 Aug 2012 19:50:09 +0200 Subject: Prevent uninitialised values for season, episode or overallepisode getting into the epg --- parse.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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; -- cgit v1.2.3