]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[prefix] Eliminate uninitialised variable
authorMichael Brown <mcb30@ipxe.org>
Fri, 9 Mar 2012 17:07:53 +0000 (17:07 +0000)
committerMichael Brown <mcb30@ipxe.org>
Fri, 9 Mar 2012 17:09:26 +0000 (17:09 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/arch/i386/core/runtime.c

index 2053bf21252046958c4ca28cfc24a47fcc1b91ac..7d410c9919500d80bf8bbf2f4cc043160b4a21a2 100644 (file)
@@ -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;