diff options
author | Michael Brown <mcb30@ipxe.org> | 2021-01-26 11:30:50 +0000 |
---|---|---|
committer | Michael Brown <mcb30@ipxe.org> | 2021-01-26 11:30:50 +0000 |
commit | ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e (patch) | |
tree | 0c3619312eef53e48497fa7ef6f8f0bc2f91e9bd | |
parent | a3f1e8fb6707811e6eb90e339d7ebe813fd89a63 (diff) | |
download | ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.tar.gz |
[efi] Fix use of uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>
-rw-r--r-- | src/interface/efi/efi_autoboot.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 ); |