[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 );
|
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) */
|
||||||
|
Reference in New Issue
Block a user