summaryrefslogtreecommitdiff
path: root/src/boot/bootctl-status.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/boot/bootctl-status.c')
-rw-r--r--src/boot/bootctl-status.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/bootctl-status.c b/src/boot/bootctl-status.c
index 44f38004f5..a0fee7d3c7 100644
--- a/src/boot/bootctl-status.c
+++ b/src/boot/bootctl-status.c
@@ -205,7 +205,7 @@ static int enumerate_binaries(
FOREACH_DIRENT(de, d, break) {
_cleanup_free_ char *v = NULL;
- _cleanup_close_ int fd = -1;
+ _cleanup_close_ int fd = -EBADF;
if (!endswith_no_case(de->d_name, ".efi"))
continue;