mirror of https://github.com/ipxe/ipxe.git
[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>pull/13/head
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