victor-dmm: Fix compiler warning.

protocol.c:106:10: warning: 'factor' may be used uninitialized in this
function [-Wmaybe-uninitialized]
This commit is contained in:
Uwe Hermann 2012-12-31 21:03:45 +01:00
parent f057272cac
commit 6375e1c3eb
1 changed files with 1 additions and 0 deletions

View File

@ -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;