From: Jaroslav Kysela Date: Wed, 20 May 2015 09:35:41 +0000 (+0200) Subject: epggrab: fix possible NULL dereference X-Git-Tag: v4.0.1~8 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=348bbbc64077930e81d7367b75f21a5c1b60a6ce;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); }