Browse Source

[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>
tags/v1.20.1
Michael Brown 11 years ago
parent
commit
e3dd10edc4
1 changed files with 1 additions and 0 deletions
  1. 1
    0
      src/arch/i386/image/bzimage.c

+ 1
- 0
src/arch/i386/image/bzimage.c View File

386
 		offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 );
386
 		offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 );
387
 	} else {
387
 	} else {
388
 		offset = 0;
388
 		offset = 0;
389
+		name_len = 0;
389
 	}
390
 	}
390
 
391
 
391
 	/* Copy in initrd image body (and cpio header if applicable) */
392
 	/* Copy in initrd image body (and cpio header if applicable) */

Loading…
Cancel
Save