]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: autonet fix parsing without path
authorJaroslav Kysela <perex@perex.cz>
Sat, 14 Nov 2015 21:25:25 +0000 (22:25 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 14 Nov 2015 21:25:25 +0000 (22:25 +0100)
src/input/mpegts/iptv/iptv_auto.c

index 788ca3a1cbff7b002b2ada833625059027e0b9cd..727248c7a20562ee986d7d10408f59cb929a95d1 100644 (file)
@@ -155,7 +155,8 @@ iptv_auto_network_process_m3u_item(iptv_network_t *in,
     tvh_strlcatf(url2, sizeof(url2), l, "%s", u.host);
     if (u.port > 0)
       tvh_strlcatf(url2, sizeof(url2), l, ":%d", u.port);
-    tvh_strlcatf(url2, sizeof(url2), l, "%s", u.path);
+    if (u.path)
+      tvh_strlcatf(url2, sizeof(url2), l, "%s", u.path);
     if (u.query)
       tvh_strlcatf(url2, sizeof(url2), l, "?%s", u.query);
     url = url2;