diff --git a/stand/efi/loader/main.c b/stand/efi/loader/main.c index 0a58bc7b7a4..fd26094f5bb 100644 --- a/stand/efi/loader/main.c +++ b/stand/efi/loader/main.c @@ -1217,7 +1217,7 @@ command_lsefi(int argc __unused, char *argv[] __unused) EFI_HANDLE handle; UINTN bufsz = 0, i, j; EFI_STATUS status; - int ret; + int ret = 0; status = BS->LocateHandle(AllHandles, NULL, NULL, &bufsz, buffer); if (status != EFI_BUFFER_TOO_SMALL) {