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 <[EMAIL PROTECTED]>
Acked-by: Peter Stuge <[EMAIL PROTECTED]>


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)


--
coreboot mailing list: [email protected]
http://www.coreboot.org/mailman/listinfo/coreboot

Reply via email to