This is an automatic generated email to let you know that the following patch 
were queued at the 
http://git.linuxtv.org/cgit.cgi/v4l-utils.git tree:

Subject: dvbv5-tools: be sure to zero struct arguments
Author:  Mauro Carvalho Chehab <mchehab+sams...@kernel.org>
Date:    Thu Mar 14 19:23:38 2019 -0300

Let's not let the arguments struct with some random value.

Signed-off-by: Mauro Carvalho Chehab <mchehab+sams...@kernel.org>

 utils/dvb/dvb-format-convert.c | 2 +-
 utils/dvb/dvbv5-scan.c         | 2 +-
 utils/dvb/dvbv5-zap.c          | 2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

---

http://git.linuxtv.org/cgit.cgi/v4l-utils.git/commit/?id=23e5056b0487acdaa56e5569952b5a8f344cf49b
diff --git a/utils/dvb/dvb-format-convert.c b/utils/dvb/dvb-format-convert.c
index 09451d41bfe1..3cbe9e7e468c 100644
--- a/utils/dvb/dvb-format-convert.c
+++ b/utils/dvb/dvb-format-convert.c
@@ -123,7 +123,7 @@ static int convert_file(struct arguments *args)
 
 int main(int argc, char **argv)
 {
-       struct arguments args;
+       struct arguments args = {};
        int idx = -1, missing = 0;
        const struct argp argp = {
                .options = options,
diff --git a/utils/dvb/dvbv5-scan.c b/utils/dvb/dvbv5-scan.c
index a9b131e1413b..65c7c730397e 100644
--- a/utils/dvb/dvbv5-scan.c
+++ b/utils/dvb/dvbv5-scan.c
@@ -450,7 +450,7 @@ static void do_timeout(int x)
 
 int main(int argc, char **argv)
 {
-       struct arguments args;
+       struct arguments args = {};
        int err, lnb = -1,idx = -1;
        struct dvb_device *dvb;
        struct dvb_dev_list *dvb_dev;
diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c
index 5567736da3c7..a5bba7313377 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -805,7 +805,7 @@ static void set_signals(struct arguments *args)
 
 int main(int argc, char **argv)
 {
-       struct arguments args;
+       struct arguments args = {};
        char *homedir = getenv("HOME");
        char *channel = NULL;
        int lnb = -1, idx = -1;

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to