summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorPeter Stuge <peter@stuge.se>2008-12-03 23:36:48 +0000
committerPeter Stuge <peter@stuge.se>2008-12-03 23:36:48 +0000
commitfd5a2df876bb28e7643c4db98a4defc8e394eb07 (patch)
treebb0ff541ea7ae9321763dab0e8ad54c28f3317eb /util
parent9602d1e8286ec17d42452b0a5ca5dc2d20c24d6e (diff)
downloadcoreboot-fd5a2df876bb28e7643c4db98a4defc8e394eb07.tar.xz
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> git-svn-id: svn://svn.coreboot.org/coreboot/trunk@3792 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'util')
-rw-r--r--util/flashrom/flashrom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/util/flashrom/flashrom.c b/util/flashrom/flashrom.c
index b1586fa30f..a75e452927 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)