[base address] parameter is supplied on the command line... This patch fixes
random segfaults when using 'cbfstool add'.
Signed-off-by: Ward Vandewege <ward@gnu.org>
Acked-by: Myles Watson <mylesgw@gmail.com>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@4363
2b7e53f0-3cfb-0310-b3e9-
8179ed1497e1
int add_handler(struct rom *rom, int argc, char **argv)
{
unsigned int type = CBFS_COMPONENT_NULL;
- unsigned long address;
+ unsigned long address = 0;
if ((argc < 3) || (argc > 4)) {
add_usage();