Author: stuge Date: 2008-12-04 00:36:48 +0100 (Thu, 04 Dec 2008) New Revision: 3792
Modified: trunk/util/flashrom/flashrom.c Log: flashrom: gcc thinks base could be used uninitialized, so shut it up.
Bug from r3791.
Signed-off-by: Peter Stuge peter@stuge.se Acked-by: Peter Stuge peter@stuge.se
Modified: trunk/util/flashrom/flashrom.c =================================================================== --- trunk/util/flashrom/flashrom.c 2008-12-03 21:39:56 UTC (rev 3791) +++ trunk/util/flashrom/flashrom.c 2008-12-03 23:36:48 UTC (rev 3792) @@ -105,7 +105,7 @@ { volatile uint8_t *bios; struct flashchip *flash; - unsigned long base, size; + unsigned long base = 0, size;
for (flash = first_flash; flash && flash->name; flash++) { if (chip_to_probe && strcmp(flash->name, chip_to_probe) != 0)