summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Janssen <medhefgo@web.de>2022-01-13 13:43:29 +0100
committerJan Janssen <medhefgo@web.de>2022-01-13 14:30:51 +0100
commit27c106bab838aa7e6544896e657161f541fe8072 (patch)
tree0e863b8db8552b3be288206ef2a0535439aed2fc
parente1e086d1f72c69d7e123037c2ec6301849c5ec7b (diff)
downloadsystemd-27c106bab838aa7e6544896e657161f541fe8072.tar.gz
boot: Add missing assert to file_read()
-rw-r--r--src/boot/efi/util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/boot/efi/util.c b/src/boot/efi/util.c
index 4fac6d3eee..177c1b3d9a 100644
--- a/src/boot/efi/util.c
+++ b/src/boot/efi/util.c
@@ -440,6 +440,7 @@ EFI_STATUS file_read(EFI_FILE *dir, const CHAR16 *name, UINTN off, UINTN size, C
_cleanup_freepool_ CHAR8 *buf = NULL;
EFI_STATUS err;
+ assert(dir);
assert(name);
assert(ret);