summaryrefslogtreecommitdiffstats
path: root/src/boot/efi/cpio.c
diff options
context:
space:
mode:
authorAntonio Alvarez Feijoo <antonio.feijoo@suse.com>2024-04-19 16:13:21 +0200
committerLuca Boccassi <luca.boccassi@gmail.com>2024-04-19 20:38:44 +0200
commitcc51dbe999f8ebbe8c26a59b6f961c4bff89e3f6 (patch)
tree59ec256e6da111277efee2c724f630ff744074eb /src/boot/efi/cpio.c
parentstub: get uname from image before loading addons (diff)
downloadsystemd-cc51dbe999f8ebbe8c26a59b6f961c4bff89e3f6.tar.xz
systemd-cc51dbe999f8ebbe8c26a59b6f961c4bff89e3f6.zip
cpio: fix assert
Diffstat (limited to '')
-rw-r--r--src/boot/efi/cpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c
index 1408d74bb6..bd1118a58a 100644
--- a/src/boot/efi/cpio.c
+++ b/src/boot/efi/cpio.c
@@ -65,7 +65,7 @@ static EFI_STATUS pack_cpio_one(
char *a;
assert(fname);
- assert(contents_size || contents_size == 0);
+ assert(contents || contents_size == 0);
assert(target_dir_prefix);
assert(inode_counter);
assert(cpio_buffer);