From 5db5451166c694c0c2109e63d62e57d7e0b715c8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Antoine=20C=C5=93ur?= Date: Tue, 19 Sep 2017 11:40:25 +0800 Subject: [PATCH] fix regression from previous commit --- SSZipArchive/SSZipArchive.m | 2 +- SSZipArchive/minizip/minishared.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/SSZipArchive/SSZipArchive.m b/SSZipArchive/SSZipArchive.m index 2947286..b0a4b34 100755 --- a/SSZipArchive/SSZipArchive.m +++ b/SSZipArchive/SSZipArchive.m @@ -558,7 +558,7 @@ NSString *const SSZipArchiveErrorDomain = @"SSZipArchiveErrorDomain"; NSLog(@"[SSZipArchive] Set attributes failed for directory: %@.", d[@"path"]); } if (err) { - NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@",err.localizedDescription); + NSLog(@"[SSZipArchive] Error setting directory file modification date attribute: %@", err.localizedDescription); } } } diff --git a/SSZipArchive/minizip/minishared.c b/SSZipArchive/minizip/minishared.c index 7b914b5..6565f3f 100644 --- a/SSZipArchive/minizip/minishared.c +++ b/SSZipArchive/minizip/minishared.c @@ -160,7 +160,7 @@ uint32_t tm_to_dosdate(const struct tm *ptm) else /* range [00, 79] */ fixed_tm.tm_year += 20; - if (!invalid_date(ptm)) + if (invalid_date(ptm)) return 0; return (uint32_t)(((fixed_tm.tm_mday) + (32 * (fixed_tm.tm_mon + 1)) + (512 * fixed_tm.tm_year)) << 16) |