diff options
| author | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-12-17 23:05:26 +0000 |
|---|---|---|
| committer | Gustavo André dos Santos Lopes <cataphract@php.net> | 2010-12-17 23:05:26 +0000 |
| commit | 9a52c2f37081bd11bc2a41ce6a2f01286a752b88 (patch) | |
| tree | 85cd5dd62b96ce58bb29e63a4da4e504e03bbe17 | |
| parent | ddf42dde2f141c8451bbde17da469d40b7535287 (diff) | |
| download | php-git-9a52c2f37081bd11bc2a41ce6a2f01286a752b88.tar.gz | |
- Fixed bug #53568 (swapped memset arguments in struct initialization).
| -rw-r--r-- | ext/zip/lib/zip_dirent.c | 4 |
1 files changed, 1 insertions, 3 deletions
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; |
