- Fixed bug #53568 (swapped memset arguments in struct initialization).

This commit is contained in:
Gustavo André dos Santos Lopes 2010-12-17 23:05:26 +00:00
parent 9cb1b1e948
commit 2070f153f9
2 changed files with 5 additions and 3 deletions

4
NEWS
View File

@ -64,6 +64,10 @@
- Streams:
. Implemented FR #26158 (open arbitrary file descriptor with fopen). (Gustavo)
- Zip extension
. Fixed bug #53568 (swapped memset arguments in struct initialization).
(crrodriguez at opensuse dot org)
09 Dec 2010, PHP 5.3.4
- Upgraded bundled Sqlite3 to version 3.7.3. (Ilia)

View 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;