From: Yu Watanabe Date: Tue, 13 Sep 2022 07:57:11 +0000 (+0900) Subject: boot: fix missing initialization X-Git-Tag: v252-rc1~203 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=63d18b6cd0ec6c2f8397f0aa63798880f5c5588e;p=thirdparty%2Fsystemd.git boot: fix missing initialization Fixes CID#1497847. --- diff --git a/src/boot/efi/cpio.c b/src/boot/efi/cpio.c index c71c218e4fb..a800959c884 100644 --- a/src/boot/efi/cpio.c +++ b/src/boot/efi/cpio.c @@ -504,7 +504,7 @@ EFI_STATUS pack_cpio_literal( uint32_t inode = 1; /* inode counter, so that each item gets a new inode */ _cleanup_free_ void *buffer = NULL; - UINTN buffer_size; + UINTN buffer_size = 0; EFI_STATUS err; assert(data || data_size == 0);