]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
linuxdvb: fix the wrong input name, fixes #4939
authorJaroslav Kysela <perex@perex.cz>
Thu, 15 Feb 2018 11:10:41 +0000 (12:10 +0100)
committerJaroslav Kysela <perex@perex.cz>
Thu, 15 Feb 2018 11:12:50 +0000 (12:12 +0100)
caused by coverity fixes 1047c9026f5ccfb88080e4ca6a04cd46f7115a40

src/input/mpegts/linuxdvb/linuxdvb_frontend.c

index 3deb6aef6fa97d08d9e6e5d0c24ea5ccf9260146..566e6497294cf79098459626f811fae3634bfb56 100644 (file)
@@ -2078,9 +2078,9 @@ linuxdvb_frontend_create
     uuid = htsmsg_get_str(conf, "uuid");
 
   /* Tuner slave */
-  snprintf(id, sizeof(id), "master for #%d", number);
+  snprintf(buf, sizeof(buf), "master for #%d", number);
   if (conf && type == DVB_TYPE_S) {
-    muuid = htsmsg_get_str(conf, id);
+    muuid = htsmsg_get_str(conf, buf);
     if (muuid && uuid && !strcmp(muuid, uuid))
       muuid = NULL;
   }