diff options
| author | Michael Brown | 2013-06-05 16:54:42 +0200 |
|---|---|---|
| committer | Michael Brown | 2013-06-05 16:56:23 +0200 |
| commit | e3dd10edc4916da53fc257f172ba85bbe2f85fa0 (patch) | |
| tree | 2eed94efe8df30ba521f860a49cde5e427a8a220 /src/arch/i386/image | |
| parent | [bzimage] Align initrd images to page boundary (diff) | |
| download | ipxe-e3dd10edc4916da53fc257f172ba85bbe2f85fa0.tar.gz ipxe-e3dd10edc4916da53fc257f172ba85bbe2f85fa0.tar.xz ipxe-e3dd10edc4916da53fc257f172ba85bbe2f85fa0.zip | |
[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>
Diffstat (limited to 'src/arch/i386/image')
| -rw-r--r-- | src/arch/i386/image/bzimage.c | 1 |
1 files changed, 1 insertions, 0 deletions
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) */ |
