diff options
author | Dmitry Stogov <dmitry@php.net> | 2007-12-03 16:04:36 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2007-12-03 16:04:36 +0000 |
commit | 80a7bf2910cf36c0ecc1942c6634a07bcbcb855d (patch) | |
tree | ada595e7b83557ec44bf1f4dc1f1fa12054fe5a0 | |
parent | 4c0f6c9a71aca268a53d0890732ed38c9ed6092a (diff) | |
download | php-git-80a7bf2910cf36c0ecc1942c6634a07bcbcb855d.tar.gz |
Fixed crash because of uninitialized SG(sapi_headers).mimetype
-rw-r--r-- | main/SAPI.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c index 095adeb0a8..2e33abce3b 100644 --- a/main/SAPI.c +++ b/main/SAPI.c @@ -301,6 +301,7 @@ SAPI_API void sapi_activate_headers_only(TSRMLS_D) /* SG(sapi_headers).http_response_code = 200; */ SG(sapi_headers).http_status_line = NULL; + SG(sapi_headers).mimetype = NULL; SG(read_post_bytes) = 0; SG(request_info).post_data = NULL; SG(request_info).raw_post_data = NULL; @@ -340,6 +341,7 @@ SAPI_API void sapi_activate(TSRMLS_D) SG(sapi_headers).http_response_code = 200; */ SG(sapi_headers).http_status_line = NULL; + SG(sapi_headers).mimetype = NULL; SG(headers_sent) = 0; SG(read_post_bytes) = 0; SG(request_info).post_data = NULL; |