summaryrefslogtreecommitdiff
path: root/src/boot/boot-efi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/boot-efi.c')
-rw-r--r--src/boot/boot-efi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/boot-efi.c b/src/boot/boot-efi.c
index 33840b6864..1c80126cc5 100644
--- a/src/boot/boot-efi.c
+++ b/src/boot/boot-efi.c
@@ -95,7 +95,7 @@ static int find_active_entry(struct boot_info *info) {
void *buf;
size_t l;
size_t i;
- int err = -ENOENT;
+ int err;
err = efi_get_variable(EFI_VENDOR_GLOBAL, "BootCurrent", NULL, &buf, &l);
if (err < 0)