From: Zbigniew Jędrzejewski-Szmek Date: Mon, 9 Mar 2015 19:57:56 +0000 (-0400) Subject: efivars: do binary and before converting to bool X-Git-Tag: v219.0~430 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=0aa3b7830fd59d8b4ca275e9a9c4e79f8a23ff6d efivars: do binary and before converting to bool I'm pretty sure that this is what was meant here. --- diff --git a/src/shared/efivars.c b/src/shared/efivars.c index 2599a1aba..6908f23e3 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; }