]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: try to fix null pointer dereference, fixes #3262
authorJaroslav Kysela <perex@perex.cz>
Wed, 4 Nov 2015 14:13:14 +0000 (15:13 +0100)
committerJaroslav Kysela <perex@perex.cz>
Wed, 4 Nov 2015 14:13:14 +0000 (15:13 +0100)
src/input/mpegts/iptv/iptv_auto.c

index 273ad3614bd6c516e666769d0f142d9e3daacae6..d820292c3a376a0960528c04400e8a3dfbc139da 100644 (file)
@@ -128,6 +128,9 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
       chnum += (int64_t)*total * CHANNEL_SPLIT;
   }
 
+  if (name == NULL)
+    name = "";
+
   urlinit(&u);
   custom[0] = '\0';