projects
/
m6w6
/
ext-http
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
|
github
raw
|
patch
| inline |
side by side
(parent:
bbafab4
)
* attempt to fix pecl Bug #16826 http_date strange behavior and crash
author
Michael Wallner
<mike@php.net>
Wed, 30 Dec 2009 14:57:04 +0000
(14:57 +0000)
committer
Michael Wallner
<mike@php.net>
Wed, 30 Dec 2009 14:57:04 +0000
(14:57 +0000)
http_date_api.c
patch
|
blob
|
history
diff --git
a/http_date_api.c
b/http_date_api.c
index 6d6e58c30f9f4a4ef912b15d8fbf30fcb92bde50..e6fd511552eef3a0404dd0a84b76a893ef1c5f16 100644
(file)
--- a/
http_date_api.c
+++ b/
http_date_api.c
@@
-142,8
+142,9
@@
static inline int check_tzone(const char *tzone)
PHP_HTTP_API char *_http_date(time_t t TSRMLS_DC)
{
char *date = NULL;
- struct tm *gmtime, tmbuf;
+ struct tm *gmtime
= NULL
, tmbuf;
+ memset(&tmbuf, 0, sizeof(tmbuf));
if ((gmtime = php_gmtime_r(&t, &tmbuf))) {
spprintf(&date, 0,
"%s, %02d %s %04d %02d:%02d:%02d GMT",