Skip to content

Commit

Permalink
[bzimage] Fix spurious uninitialised-variable warning on some gcc ver…
Browse files Browse the repository at this point in the history
…sions

Reported-by: Matthew Helton <mwhelton@gmail.com>
Signed-off-by: Michael Brown <mcb30@ipxe.org>
  • Loading branch information
mcb30 committed Jun 5, 2013
1 parent c825a9b commit e3dd10e
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/arch/i386/image/bzimage.c
Expand Up @@ -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) */
Expand Down

0 comments on commit e3dd10e

Please sign in to comment.