diff options
| author | Michael Brown | 2021-01-26 12:30:50 +0100 |
|---|---|---|
| committer | Michael Brown | 2021-01-26 12:30:50 +0100 |
| commit | ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e (patch) | |
| tree | 0c3619312eef53e48497fa7ef6f8f0bc2f91e9bd /src/interface | |
| parent | [efi] Automatically load "/autoexec.ipxe" when booted from a filesystem (diff) | |
| download | ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.tar.gz ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.tar.xz ipxe-ade4d2b4fe5215f3cd850fd6fb1dc2400902cb5e.zip | |
[efi] Fix use of uninitialised variable
Signed-off-by: Michael Brown <mcb30@ipxe.org>
Diffstat (limited to 'src/interface')
| -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 ); |
