From: Peter Stuge Date: Wed, 3 Dec 2008 23:36:48 +0000 (+0000) Subject: flashrom: gcc thinks base could be used uninitialized, so shut it up. X-Git-Url: http://wien.tomnetworks.com/gitweb/?a=commitdiff_plain;h=fd5a2df876bb28e7643c4db98a4defc8e394eb07;p=coreboot.git flashrom: gcc thinks base could be used uninitialized, so shut it up. Bug from r3791. Signed-off-by: Peter Stuge Acked-by: Peter Stuge git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3792 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c index b1586fa30..a75e45292 100644 --- a/util/flashrom/flashrom.c +++ b/util/flashrom/flashrom.c @@ -105,7 +105,7 @@ struct flashchip *probe_flash(struct flashchip *first_flash, int force) { 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)