From: Jaroslav Kysela Date: Wed, 20 May 2015 09:35:41 +0000 (+0200) Subject: epggrab: fix possible NULL dereference X-Git-Tag: v4.2.1~2516 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d7efb20ef89fbbdf1989114c588c2c75be4f1351;p=thirdparty%2Ftvheadend.git epggrab: fix possible NULL dereference --- diff --git a/src/epggrab/module.c b/src/epggrab/module.c index ac739ed9f..cffdfba13 100644 --- a/src/epggrab/module.c +++ b/src/epggrab/module.c @@ -68,7 +68,8 @@ htsmsg_t *epggrab_module_list ( void ) htsmsg_add_str(e, "name", m->name); if(m->type == EPGGRAB_EXT) { epggrab_module_ext_t *ext = (epggrab_module_ext_t*)m; - htsmsg_add_str(e, "path", ext->path); + if (ext->path) + htsmsg_add_str(e, "path", ext->path); } htsmsg_add_msg(a, NULL, e); }