From 8658af7e0a73d6ac4d94e81dde0e9fa95b1aff47 Mon Sep 17 00:00:00 2001 From: Tobias Reh Date: Wed, 26 May 2021 11:40:22 +0200 Subject: [PATCH] prefer 0 date over uninitialized value --- zip.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/zip.c b/zip.c index 98bb7df..d6eabd0 100755 --- a/zip.c +++ b/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;