From: Jaroslav Kysela Date: Sat, 16 Feb 2019 19:55:38 +0000 (+0100) Subject: satip client: initialize variable _w correctly for the PIDs split rewrite, fixes... X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=22eeadd11f8d323355ee3ab6e9068b5e443884ef;p=thirdparty%2Ftvheadend.git satip client: initialize variable _w correctly for the PIDs split rewrite, fixes #5544, issue #5549 --- diff --git a/src/input/mpegts/satip/satip_rtsp.c b/src/input/mpegts/satip/satip_rtsp.c index d1a2e83ca..d20543601 100644 --- a/src/input/mpegts/satip/satip_rtsp.c +++ b/src/input/mpegts/satip/satip_rtsp.c @@ -345,6 +345,8 @@ satip_rtsp_play( http_client_t *hc, const char *pids, if (weight) snprintf(_w, sizeof(_w), "&tvhweight=%d", weight); + else + _w[0] = '\0'; /* pids setup and add/del requests cannot be mixed per specification */ /* do the proper split */