mirror of
https://github.com/xcat2/xNBA.git
synced 2024-11-22 09:31:51 +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:
parent
c825a9b39d
commit
e3dd10edc4
@ -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) */
|
||||
|
Loading…
Reference in New Issue
Block a user