]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
xmltv: fix possible segfault, fixes #4324
authorJaroslav Kysela <perex@perex.cz>
Fri, 21 Apr 2017 06:43:31 +0000 (08:43 +0200)
committerJaroslav Kysela <perex@perex.cz>
Fri, 21 Apr 2017 06:43:31 +0000 (08:43 +0200)
src/epggrab/module/xmltv.c

index 4cbf9996660a6201aaaa81db8e00f4d0cd4a892f..e4d063001747baf014e140f1aaa12c43e3ac3237 100644 (file)
@@ -667,7 +667,7 @@ static int _xmltv_parse_channel
           }
         }
       }
-      if (*name)
+      if (name && *name)
         htsmsg_add_str_exclusive(dnames, name);
     }
     else if (strcmp(f->hmf_name, "icon") == 0) {