david/ipxe
Archived
1
0

[bzimage] Fix spurious uninitialised-variable warning on some gcc versions

Reported-by: Matthew Helton <mwhelton@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2013-06-05 15:54:42 +01:00
parent c825a9b39d
commit e3dd10edc4

View File

@ -386,6 +386,7 @@ static size_t bzimage_load_initrd ( struct image *image,
offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 ); offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 );
} else { } else {
offset = 0; offset = 0;
name_len = 0;
} }
/* Copy in initrd image body (and cpio header if applicable) */ /* Copy in initrd image body (and cpio header if applicable) */