]> git.ipfire.org Git - thirdparty/ipxe.git/commitdiff
[efi] Fix use of uninitialised variable
authorMichael Brown <mcb30@ipxe.org>
Tue, 26 Jan 2021 11:30:50 +0000 (11:30 +0000)
committerMichael Brown <mcb30@ipxe.org>
Tue, 26 Jan 2021 11:30:50 +0000 (11:30 +0000)
Signed-off-by: Michael Brown <mcb30@ipxe.org>
src/interface/efi/efi_autoboot.c

index 33a780f5b74931f604fad559a63619f71f4d7380..6e8f9df634afb21e1716e2139d929cc4a0dabc1a 100644 (file)
@@ -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 );