From 58f05f8f1f9598fc434c5952497bca2fc998db52 Mon Sep 17 00:00:00 2001 From: ghost Date: Tue, 17 Nov 2009 18:34:45 +0100 Subject: [PATCH] epgcache.cpp: fix segfault on unknown arg --- lib/dvb/epgcache.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/dvb/epgcache.cpp b/lib/dvb/epgcache.cpp index f80e1775..5381195a 100644 --- a/lib/dvb/epgcache.cpp +++ b/lib/dvb/epgcache.cpp @@ -1717,6 +1717,7 @@ void fillTuple(ePyObject tuple, const char *argstring, int argcount, ePyObject s ++argcount; continue; default: // ignore unknown + tmp = ePyObjec(); eDebug("fillTuple unknown '%c'... insert 'None' in result", c); } if (!tmp) @@ -2061,6 +2062,7 @@ void fillTuple2(ePyObject tuple, const char *argstring, int argcount, eventData inc_refcount = true; break; default: // ignore unknown + tmp = ePyObject(); eDebug("fillTuple2 unknown '%c'... insert None in Result", argstring[pos]); } if (!tmp) -- 2.30.2