]> granicus.if.org Git - php/commitdiff
- Fixed bug #53568 (swapped memset arguments in struct initialization).
authorGustavo André dos Santos Lopes <cataphract@php.net>
Fri, 17 Dec 2010 23:05:26 +0000 (23:05 +0000)
committerGustavo André dos Santos Lopes <cataphract@php.net>
Fri, 17 Dec 2010 23:05:26 +0000 (23:05 +0000)
ext/zip/lib/zip_dirent.c

index 39fcb6f62d6ed32612804b9b6a4b1f52447edeb2..59f8ab0af9c6c5ace52c863526e66e0d7e7928c5 100644 (file)
@@ -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;