From 41b4a8ce4ce613455a79d3972023ecea92ff88e8 Mon Sep 17 00:00:00 2001 From: Gregor Jasny Date: Wed, 23 Apr 2014 09:52:19 +0200 Subject: [PATCH] dvbv5-zap: Always initialize status variable In case of an early timeout it would be used uninitialized. Detected by Coverity. CC: Mauro Carvalho Chehab Signed-off-by: Gregor Jasny --- utils/dvb/dvbv5-zap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/utils/dvb/dvbv5-zap.c b/utils/dvb/dvbv5-zap.c index d7f9c5f..14e8fd9 100644 --- a/utils/dvb/dvbv5-zap.c +++ b/utils/dvb/dvbv5-zap.c @@ -385,7 +385,7 @@ static int check_frontend(struct arguments *args, struct dvb_v5_fe_parms *parms) { int rc; - fe_status_t status; + fe_status_t status = 0; do { rc = dvb_fe_get_stats(parms); if (rc) { -- 2.7.4