diff options
author | Michael Brown | 2012-03-09 18:07:53 +0100 |
---|---|---|
committer | Michael Brown | 2012-03-09 18:09:26 +0100 |
commit | b4bb39909eac7f1bf0fc59c5397e9caaa16a1a59 (patch) | |
tree | d2e52fa2799d7b48d173bf1378cbe2d1a87d7238 /src/arch/i386/core/runtime.c | |
parent | [test] Avoid using "static const" for test declarations (diff) | |
download | ipxe-b4bb39909eac7f1bf0fc59c5397e9caaa16a1a59.tar.gz ipxe-b4bb39909eac7f1bf0fc59c5397e9caaa16a1a59.tar.xz ipxe-b4bb39909eac7f1bf0fc59c5397e9caaa16a1a59.zip |
[prefix] Eliminate uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/arch/i386/core/runtime.c')
-rw-r--r-- | src/arch/i386/core/runtime.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/arch/i386/core/runtime.c b/src/arch/i386/core/runtime.c index 2053bf21..7d410c99 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, "<INITRD>" ); @@ -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; |