rs9lcd: Fix compiler warning.

rs9lcd.c:289:19: warning: 'rawval' may be used uninitialized in this
function [-Wmaybe-uninitialized]
This commit is contained in:
Uwe Hermann 2012-12-31 20:58:14 +01:00
parent 9116262931
commit 6e9d545cf4
1 changed files with 1 additions and 1 deletions

View File

@ -262,7 +262,7 @@ static uint8_t decode_digit(uint8_t raw_digit)
static double lcd_to_double(const struct rs9lcd_packet *rs_packet, int type) static double lcd_to_double(const struct rs9lcd_packet *rs_packet, int type)
{ {
double rawval, multiplier = 1; double rawval = 0, multiplier = 1;
uint8_t digit, raw_digit; uint8_t digit, raw_digit;
gboolean dp_reached = FALSE; gboolean dp_reached = FALSE;
int i, end; int i, end;