From 6375e1c3eba6243bcaa28f0eee5452cc6f9ae2fd Mon Sep 17 00:00:00 2001 From: Uwe Hermann Date: Mon, 31 Dec 2012 21:03:45 +0100 Subject: [PATCH] victor-dmm: Fix compiler warning. protocol.c:106:10: warning: 'factor' may be used uninitialized in this function [-Wmaybe-uninitialized] --- hardware/victor-dmm/protocol.c | 1 + 1 file changed, 1 insertion(+) diff --git a/hardware/victor-dmm/protocol.c b/hardware/victor-dmm/protocol.c index e2c05b02..6a82d339 100644 --- a/hardware/victor-dmm/protocol.c +++ b/hardware/victor-dmm/protocol.c @@ -70,6 +70,7 @@ static void decode_buf(struct dev_context *devc, unsigned char *data) } /* Decimal point position */ + factor = 0; switch (data[7] >> 4) { case 0x00: factor = 0;