]> 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:55:48 +0000 (20:55 +0100)
src/input/mpegts/satip/satip_rtsp.c

index d1a2e83cabdf5573472b16d731988b46b27fbdcd..d20543601a93b3136c13ed944ed2a550f1ba5665 100644 (file)
@@ -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 */