From: John Törblom Date: Tue, 16 Apr 2013 11:41:36 +0000 (+0200) Subject: xmltv: fixed episode/season count being off by one. X-Git-Tag: 3.4patch1~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c2b8a0f9af5952a536a1235f1532d263c4804a42;p=thirdparty%2Ftvheadend.git xmltv: fixed episode/season count being off by one. (cherry picked from commit cbae62c053aba1386fcb47b65df28b37ce5c1f4c) --- diff --git a/src/epggrab/module/xmltv.c b/src/epggrab/module/xmltv.c index e00d002be..8c7bc3891 100644 --- a/src/epggrab/module/xmltv.c +++ b/src/epggrab/module/xmltv.c @@ -184,8 +184,8 @@ static const char *xmltv_ns_get_parse_num out: - if(ap) *ap = a + 1; - if(bp) *bp = b + 1; + if(ap && a >= 0) *ap = a + 1; + if(bp && b >= 0) *bp = b; return s; }