commit | 8658af7e0a73d6ac4d94e81dde0e9fa95b1aff47 | [log] [tgz] |
---|---|---|
author | Tobias Reh <treh@think-cell.com> | Wed May 26 11:40:22 2021 +0200 |
committer | Nathan Moinvaziri <nathan@nathanm.com> | Wed May 26 10:40:48 2021 -0700 |
tree | 38ad636c526c34ef6d98600d35215688b5373445 | |
parent | 18d42f208581ccb7f8223263bd5d520e3e5ae6a6 [diff] |
prefer 0 date over uninitialized value
diff --git a/zip.c b/zip.c index 98bb7df..d6eabd0 100755 --- a/zip.c +++ b/zip.c
@@ -974,10 +974,7 @@ 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;