Skip to content

Commit aa3a6b4

Browse files
committed
Initialize have_dos_time.
Fixes issue #480
1 parent 37b02a6 commit aa3a6b4

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

THANKS

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ Mark A. Tsuchida <marktsuchida@gmail.com>
9797
Martin Buchholz <martinrb@google.com>
9898
Martin Herkt <lachs0r@srsfckn.biz>
9999
Martin Szulecki <m.szulecki@libimobiledevice.org>
100+
Mathieu Pujol
100101
Michael Balzer
101102
Michael Beck <mm.beck@gmx.net>
102103
Michael Heimpold <mhei@heimpold.de>

lib/zip_close.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -304,7 +304,8 @@ static int add_data(zip_t *za, zip_source_t *src, zip_dirent_t *de, zip_uint32_t
304304
int is_zip64;
305305
zip_flags_t flags;
306306
bool needs_recompress, needs_decompress, needs_crc, needs_compress, needs_reencrypt, needs_decrypt, needs_encrypt;
307-
bool have_dos_time, dirent_changed;
307+
bool dirent_changed;
308+
bool have_dos_time = false;
308309
time_t mtime_before_copy;
309310

310311
if (zip_source_stat(src, &st) < 0) {

0 commit comments

Comments
 (0)