[coreboot] r3792 - trunk/util/flashrom
svn at coreboot.org
svn at coreboot.org
Thu Dec 4 00:36:48 CET 2008
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 at stuge.se>
Acked-by: Peter Stuge <peter at 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)
More information about the coreboot
mailing list