mirror of
https://github.com/ipxe/ipxe
synced 2025-12-12 14:32:49 +03:00
[prefix] Eliminate uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -193,6 +193,7 @@ static int initrd_init ( void ) {
|
|||||||
if ( ! image ) {
|
if ( ! image ) {
|
||||||
DBGC ( colour, "RUNTIME could not allocate image for "
|
DBGC ( colour, "RUNTIME could not allocate image for "
|
||||||
"initrd\n" );
|
"initrd\n" );
|
||||||
|
rc = -ENOMEM;
|
||||||
goto err_alloc_image;
|
goto err_alloc_image;
|
||||||
}
|
}
|
||||||
image_set_name ( image, "<INITRD>" );
|
image_set_name ( image, "<INITRD>" );
|
||||||
@@ -202,6 +203,7 @@ static int initrd_init ( void ) {
|
|||||||
if ( ! image->data ) {
|
if ( ! image->data ) {
|
||||||
DBGC ( colour, "RUNTIME could not allocate %zd bytes for "
|
DBGC ( colour, "RUNTIME could not allocate %zd bytes for "
|
||||||
"initrd\n", initrd_len );
|
"initrd\n", initrd_len );
|
||||||
|
rc = -ENOMEM;
|
||||||
goto err_umalloc;
|
goto err_umalloc;
|
||||||
}
|
}
|
||||||
image->len = initrd_len;
|
image->len = initrd_len;
|
||||||
|
|||||||
Reference in New Issue
Block a user