summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-09 15:57:56 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-09 16:45:27 -0400
commit0aa3b7830fd59d8b4ca275e9a9c4e79f8a23ff6d (patch)
tree1b29ba6dff7750f076f361c285684740bee22a0c
parenta8436474fa5fa02b8ecf3c23be04de2bca8b4c03 (diff)
efivars: do binary and before converting to bool
I'm pretty sure that this is what was meant here.
-rw-r--r--src/shared/efivars.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shared/efivars.c b/src/shared/efivars.c
index 2599a1aba1..6908f23e38 100644
--- a/src/shared/efivars.c
+++ b/src/shared/efivars.c
@@ -339,7 +339,7 @@ int efi_get_boot_option(
p = NULL;
}
if (active)
- *active = !!header->attr & LOAD_OPTION_ACTIVE;
+ *active = !!(header->attr & LOAD_OPTION_ACTIVE);
return 0;
}