2
0
mirror of https://github.com/xcat2/xNBA.git synced 2024-11-22 01:21:45 +00:00

[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 );
} else {
offset = 0;
name_len = 0;
}
/* Copy in initrd image body (and cpio header if applicable) */