https://github.com/nih-at/libzip/commit/aa3a6b4da7577de63581f8db2f9d2757481b4cc8 From aa3a6b4da7577de63581f8db2f9d2757481b4cc8 Mon Sep 17 00:00:00 2001 From: Dieter Baron Date: Thu, 23 Jan 2025 11:01:57 +0100 Subject: [PATCH] Initialize have_dos_time. Fixes issue #480 --- lib/zip_close.c | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) --- a/lib/zip_close.c +++ b/lib/zip_close.c @@ -304,7 +304,8 @@ static int add_data(zip_t *za, zip_source_t *src, zip_dirent_t *de, zip_uint32_t int is_zip64; zip_flags_t flags; bool needs_recompress, needs_decompress, needs_crc, needs_compress, needs_reencrypt, needs_decrypt, needs_encrypt; - bool have_dos_time, dirent_changed; + bool dirent_changed; + bool have_dos_time = false; time_t mtime_before_copy; if (zip_source_stat(src, &st) < 0) {