From: Jaroslav Kysela Date: Fri, 30 Oct 2015 15:15:11 +0000 (+0100) Subject: IPTV: m3u parser - fix wrong variable usage X-Git-Tag: v4.2.1~1726 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=08e57f0e27884bf136f0fb172d5c8487133256be;p=thirdparty%2Ftvheadend.git IPTV: m3u parser - fix wrong variable usage --- diff --git a/src/input/mpegts/iptv/iptv_http.c b/src/input/mpegts/iptv/iptv_http.c index 3bf2c6ee2..8b9f4b3e9 100644 --- a/src/input/mpegts/iptv/iptv_http.c +++ b/src/input/mpegts/iptv/iptv_http.c @@ -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); }