prefer 0 date over uninitialized value

This commit is contained in:
Tobias Reh 2021-05-26 11:40:22 +02:00 committed by Nathan Moinvaziri
parent 18d42f2085
commit 8658af7e0a

3
zip.c
View File

@ -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.method = method;
zi->ci.compression_method = method;