]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: fix possible NULL dereference
authorJaroslav Kysela <perex@perex.cz>
Wed, 20 May 2015 09:35:41 +0000 (11:35 +0200)
committerJaroslav Kysela <perex@perex.cz>
Wed, 20 May 2015 09:35:41 +0000 (11:35 +0200)
src/epggrab/module.c

index ac739ed9fee511bbc793413fa4014134b4a91fcd..cffdfba133d59bea224b81dd29c434867eb4611f 100644 (file)
@@ -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);
   }