From: Gustavo André dos Santos Lopes Date: Fri, 17 Dec 2010 23:05:26 +0000 (+0000) Subject: - Fixed bug #53568 (swapped memset arguments in struct initialization). X-Git-Tag: php-5.4.0alpha1~191^2~490 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=9a52c2f37081bd11bc2a41ce6a2f01286a752b88;p=php - Fixed bug #53568 (swapped memset arguments in struct initialization). --- diff --git a/ext/zip/lib/zip_dirent.c b/ext/zip/lib/zip_dirent.c index 39fcb6f62d..59f8ab0af9 100644 --- a/ext/zip/lib/zip_dirent.c +++ b/ext/zip/lib/zip_dirent.c @@ -473,10 +473,8 @@ _zip_dirent_write(struct zip_dirent *zde, FILE *fp, int localp, static time_t _zip_d2u_time(int dtime, int ddate) { - struct tm tm; + struct tm tm = {0}; - memset(&tm, sizeof(tm), 0); - /* let mktime decide if DST is in effect */ tm.tm_isdst = -1;