aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-14 22:23:38 (GMT)
committerMauro Carvalho Chehab <mchehab+samsung@kernel.org>2019-03-14 22:26:08 (GMT)
commit22b06353227e04695b1b0a9622b896b948adba89 (patch)
treea36c9bdd1c226fc8d521679e194180889f148068
parentf85040e18e937a12367d80c3895216e3cf8d4a7d (diff)
dvbv5-tools: be sure to zero struct arguments
Let's not let the arguments struct with some random value. Signed-off-by: Mauro Carvalho Chehab <mchehab+samsung@kernel.org>
-rw-r--r--utils/dvb/dvb-format-convert.c2
-rw-r--r--utils/dvb/dvbv5-scan.c2
-rw-r--r--utils/dvb/dvbv5-zap.c2
3 files changed, 3 insertions, 3 deletions
diff --git a/utils/dvb/dvb-format-convert.c b/utils/dvb/dvb-format-convert.c
index 09451d4..3cbe9e7 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 a9b131e..65c7c73 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 92cd932..95d8d35 100644
--- a/utils/dvb/dvbv5-zap.c
+++ b/utils/dvb/dvbv5-zap.c
@@ -1018,7 +1018,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;

Privacy Policy