mirror of https://github.com/ipxe/ipxe.git
[prefix] Eliminate uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>pull/6/head
parent
8ad1e7ac12
commit
b4bb39909e
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue