Explorar el Código

[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 hace 11 años
padre
commit
e3dd10edc4
Se han modificado 1 ficheros con 1 adiciones y 0 borrados
  1. 1
    0
      src/arch/i386/image/bzimage.c

+ 1
- 0
src/arch/i386/image/bzimage.c Ver fichero

@@ -386,6 +386,7 @@ static size_t bzimage_load_initrd ( struct image *image,
386 386
 		offset = ( ( sizeof ( cpio ) + name_len + 0x03 ) & ~0x03 );
387 387
 	} else {
388 388
 		offset = 0;
389
+		name_len = 0;
389 390
 	}
390 391
 
391 392
 	/* Copy in initrd image body (and cpio header if applicable) */

Loading…
Cancelar
Guardar