From: Uwe Hermann Date: Mon, 31 Dec 2012 20:03:45 +0000 (+0100) Subject: victor-dmm: Fix compiler warning. X-Git-Tag: dsupstream~395 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6375e1c3eba6243bcaa28f0eee5452cc6f9ae2fd;p=libsigrok.git victor-dmm: Fix compiler warning. protocol.c:106:10: warning: 'factor' may be used uninitialized in this function [-Wmaybe-uninitialized] --- 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;