From: Michael Brown Date: Wed, 5 Jun 2013 14:54:42 +0000 (+0100) Subject: [bzimage] Fix spurious uninitialised-variable warning on some gcc versions X-Git-Tag: v1.20.1~1501 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e3dd10edc4916da53fc257f172ba85bbe2f85fa0;p=thirdparty%2Fipxe.git [bzimage] Fix spurious uninitialised-variable warning on some gcc versions Reported-by: Matthew Helton Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/image/bzimage.c b/src/arch/i386/image/bzimage.c index 3b484b174..0618dbf4e 100644 --- a/src/arch/i386/image/bzimage.c +++ b/src/arch/i386/image/bzimage.c @@ -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) */