]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
IPTV: m3u parser - fix wrong variable usage
authorJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 15:15:11 +0000 (16:15 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 30 Oct 2015 15:15:11 +0000 (16:15 +0100)
src/input/mpegts/iptv/iptv_http.c

index 3bf2c6ee2833787fc617536f157bbb4f98760de1..8b9f4b3e9a996920488316ef415d540b512da6ba 100644 (file)
@@ -155,9 +155,9 @@ iptv_http_complete
         goto invalid;
       url2 = malloc(512);
       url2[0] = '\0';
-      if ((s = http_arg_get(&hc->hc_args, "Host")) != NULL) {
+      if ((p = http_arg_get(&hc->hc_args, "Host")) != NULL) {
         snprintf(url2, 512, "%s://%s%s",
-                 hc->hc_ssl ? "https" : "http", s, url);
+                 hc->hc_ssl ? "https" : "http", p, url);
       } else if (im->mm_iptv_url_raw) {
         snprintf(url2, 512, "%s%s", s, url);
       }