diff options
author | Peter Stuge <peter@stuge.se> | 2008-12-03 23:36:48 +0000 |
---|---|---|
committer | Peter Stuge <peter@stuge.se> | 2008-12-03 23:36:48 +0000 |
commit | 7ccce54a69770051aa39ce7cfd8958eea6cbf685 (patch) | |
tree | 9ddcc393be14c4078b38b90daad71af329f28d0c | |
parent | 73bdb92b5d753a39af733df1932e42839de88e8a (diff) | |
download | ast2050-flashrom-7ccce54a69770051aa39ce7cfd8958eea6cbf685.zip ast2050-flashrom-7ccce54a69770051aa39ce7cfd8958eea6cbf685.tar.gz |
Gcc thinks base could be used uninitialized, so shut it up
Bug from r3791.
Corresponding to flashrom svn r357 and coreboot v2 svn r3792.
Signed-off-by: Peter Stuge <peter@stuge.se>
Acked-by: Peter Stuge <peter@stuge.se>
-rw-r--r-- | flashrom.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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) |