summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Esser <sesser@php.net>2003-11-22 21:10:47 +0000
committerStefan Esser <sesser@php.net>2003-11-22 21:10:47 +0000
commit28b6c35d80bcdaab0cce5652550f2233c4e9577b (patch)
tree9a27e4fd04cef6dbf98a022114ac4a78ade1daa7
parent95c0c36525320be1425fbdf4eddf4aa3ae9681d8 (diff)
downloadphp-git-28b6c35d80bcdaab0cce5652550f2233c4e9577b.tar.gz
On error do not leave content_type_dup unitialised.
-rw-r--r--main/SAPI.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/main/SAPI.c b/main/SAPI.c
index c11a8b4037..630b5a2b31 100644
--- a/main/SAPI.c
+++ b/main/SAPI.c
@@ -160,6 +160,7 @@ static void sapi_read_post_data(TSRMLS_D)
SG(request_info).post_entry = NULL;
if (!sapi_module.default_post_reader) {
/* no default reader ? */
+ SG(request_info).content_type_dup = NULL;
sapi_module.sapi_error(E_WARNING, "Unsupported content type: '%s'", content_type);
return;
}