]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: m3u parser - another fix for url parser
authorJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 22:10:54 +0000 (23:10 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 22:10:54 +0000 (23:10 +0100)
src/input/mpegts/iptv/iptv_http.c

index 29cf12b92e4eaa320637df549a6113c894b94078..9f8bfe7e27762a8b8bf14accf09105d6a79eb6ff 100644 (file)
@@ -159,7 +159,7 @@ iptv_http_complete
           p++;
           if (*p == '/')
             p++;
-          if ((p = strchr(s, '/')) != NULL)
+          if ((p = strchr(p, '/')) != NULL)
             *p = '\0';
         }
         if (!urlparse(s, &u))