]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
iptv auto: fix NULL dereference issue for tags, fixes #4134
authorJaroslav Kysela <perex@perex.cz>
Sun, 11 Dec 2016 19:04:06 +0000 (20:04 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sun, 11 Dec 2016 19:04:06 +0000 (20:04 +0100)
src/input/mpegts/iptv/iptv_auto.c

index 23607e9de5b312879b92efd9bea9e19c1b56c3b8..f17ca0a3d6b477cfd001d57a5d84103401f45e3f 100644 (file)
@@ -241,7 +241,7 @@ skip_url:
       }
       if (strcmp(im->mm_iptv_tags ?: "", tags ?: "")) {
         free(im->mm_iptv_tags);
-        im->mm_iptv_tags = strdup(tags);
+        im->mm_iptv_tags = tags ? strdup(tags) : NULL;
         change = 1;
       }
       if (epgcfg >= 0 && im->mm_epg != epgcfg) {