]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
satip client: initialize variable _w correctly for the PIDs split rewrite, fixes...
authorJaroslav Kysela <perex@perex.cz>
Sat, 16 Feb 2019 19:55:38 +0000 (20:55 +0100)
committerJaroslav Kysela <perex@perex.cz>
Sat, 16 Feb 2019 19:56:14 +0000 (20:56 +0100)
src/input/mpegts/satip/satip_rtsp.c

index 6bf5415feb9e50f57e562dc427316e3473da7a57..d7e88c3aa642fcebb73f62c70b4677145488fdd6 100644 (file)
@@ -346,6 +346,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 */