From: Michael Brown Date: Tue, 26 Jan 2021 11:30:50 +0000 (+0000) Subject: [efi] Fix use of uninitialised variable X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e;p=thirdparty%2Fipxe.git [efi] Fix use of uninitialised variable Signed-off-by: Michael Brown --- diff --git a/src/interface/efi/efi_autoboot.c b/src/interface/efi/efi_autoboot.c index 33a780f5b..6e8f9df63 100644 --- a/src/interface/efi/efi_autoboot.c +++ b/src/interface/efi/efi_autoboot.c @@ -194,6 +194,9 @@ static int efi_load_autoexec ( EFI_HANDLE device ) { DBGC ( device, "EFI %s found %ls\n", efi_handle_name ( device ), name ); + /* Success */ + rc = 0; + err_read: if ( data ) bs->FreePool ( data );