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 | 2070f153f9ddd6c1039e483872f8773e68fc8768 (patch) | |
tree | 1699914df4d15bfdf1a8426864b42e06c2e3183c /ext/zip/lib/zip_dirent.c | |
parent | 9cb1b1e948b8f6e8cf689e5a48bfe46cea56ddd0 (diff) | |
download | php-git-2070f153f9ddd6c1039e483872f8773e68fc8768.tar.gz |
- Fixed bug #53568 (swapped memset arguments in struct initialization).
Diffstat (limited to 'ext/zip/lib/zip_dirent.c')
-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; |