]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
boot: fix missing initialization
authorYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Sep 2022 07:57:11 +0000 (16:57 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Tue, 13 Sep 2022 12:06:05 +0000 (21:06 +0900)
Fixes CID#1497847.

src/boot/efi/cpio.c

index c71c218e4fb4a1d9d15369262a52fc41d88bada5..a800959c884c1038980a381387b50a451a0007dc 100644 (file)
@@ -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);