From: Uwe Hermann Date: Mon, 31 Dec 2012 19:58:14 +0000 (+0100) Subject: rs9lcd: Fix compiler warning. X-Git-Tag: dsupstream~398 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=6e9d545cf4f546cbdb8a7ecd16d26e7d5e767a0b;p=libsigrok.git rs9lcd: Fix compiler warning. rs9lcd.c:289:19: warning: 'rawval' may be used uninitialized in this function [-Wmaybe-uninitialized] --- diff --git a/hardware/common/dmm/rs9lcd.c b/hardware/common/dmm/rs9lcd.c index 25e33070..a86c9f20 100644 --- a/hardware/common/dmm/rs9lcd.c +++ b/hardware/common/dmm/rs9lcd.c @@ -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) { - double rawval, multiplier = 1; + double rawval = 0, multiplier = 1; uint8_t digit, raw_digit; gboolean dp_reached = FALSE; int i, end;