mirror of
https://github.com/zlib-ng/minizip-ng
synced 2025-03-28 21:13:18 +00:00
prefer 0 date over uninitialized value
This commit is contained in:
parent
18d42f2085
commit
8658af7e0a
5
zip.c
5
zip.c
@ -974,10 +974,7 @@ extern int ZEXPORT zipOpenNewFileInZip_internal(zipFile file,
|
||||
if (zipfi == NULL)
|
||||
zi->ci.dos_date = 0;
|
||||
else
|
||||
{
|
||||
if (zipfi->dos_date != 0)
|
||||
zi->ci.dos_date = zipfi->dos_date;
|
||||
}
|
||||
zi->ci.dos_date = zipfi->dos_date;
|
||||
|
||||
zi->ci.method = method;
|
||||
zi->ci.compression_method = method;
|
||||
|
Loading…
x
Reference in New Issue
Block a user