From: Michael Brown Date: Fri, 9 Mar 2012 17:07:53 +0000 (+0000) Subject: [prefix] Eliminate uninitialised variable X-Git-Tag: v1.20.1~1954 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b4bb39909eac7f1bf0fc59c5397e9caaa16a1a59;p=thirdparty%2Fipxe.git [prefix] Eliminate uninitialised variable Signed-off-by: Michael Brown --- diff --git a/src/arch/i386/core/runtime.c b/src/arch/i386/core/runtime.c index 2053bf212..7d410c991 100644 --- a/src/arch/i386/core/runtime.c +++ b/src/arch/i386/core/runtime.c @@ -193,6 +193,7 @@ static int initrd_init ( void ) { if ( ! image ) { DBGC ( colour, "RUNTIME could not allocate image for " "initrd\n" ); + rc = -ENOMEM; goto err_alloc_image; } image_set_name ( image, "" ); @@ -202,6 +203,7 @@ static int initrd_init ( void ) { if ( ! image->data ) { DBGC ( colour, "RUNTIME could not allocate %zd bytes for " "initrd\n", initrd_len ); + rc = -ENOMEM; goto err_umalloc; } image->len = initrd_len;