summaryrefslogtreecommitdiffstats
path: root/src/core/efi-random.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/core/efi-random.c')
-rw-r--r--src/core/efi-random.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/efi-random.c b/src/core/efi-random.c
index 61516775fc..dffde57c91 100644
--- a/src/core/efi-random.c
+++ b/src/core/efi-random.c
@@ -13,7 +13,7 @@
#include "strv.h"
void lock_down_efi_variables(void) {
- _cleanup_close_ int fd = -1;
+ _cleanup_close_ int fd = -EBADF;
int r;
fd = open(EFIVAR_PATH(EFI_LOADER_VARIABLE(LoaderSystemToken)), O_RDONLY|O_CLOEXEC);