summaryrefslogtreecommitdiff
path: root/dev-libs/libzip/files/libzip-1.11.3-uninit.patch
blob: 97722e9f9d947e8f8e8c798676d05bdab64ab5b4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
https://github.com/nih-at/libzip/commit/aa3a6b4da7577de63581f8db2f9d2757481b4cc8

From aa3a6b4da7577de63581f8db2f9d2757481b4cc8 Mon Sep 17 00:00:00 2001
From: Dieter Baron <dillo@nih.at>
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) {