Skip to content

Commit

Permalink
Initialize have_dos_time.
Browse files Browse the repository at this point in the history
Fixes issue #480
  • Loading branch information
dillof committed Jan 23, 2025
1 parent 37b02a6 commit aa3a6b4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions THANKS
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,7 @@ Mark A. Tsuchida <[email protected]>
Martin Buchholz <[email protected]>
Martin Herkt <[email protected]>
Martin Szulecki <[email protected]>
Mathieu Pujol
Michael Balzer
Michael Beck <[email protected]>
Michael Heimpold <[email protected]>
Expand Down
3 changes: 2 additions & 1 deletion lib/zip_close.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit aa3a6b4

Please sign in to comment.