From fd5a2df876bb28e7643c4db98a4defc8e394eb07 Mon Sep 17 00:00:00 2001 From: Peter Stuge Date: Wed, 3 Dec 2008 23:36:48 +0000 Subject: [PATCH] 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 --- util/flashrom/flashrom.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1