From 28b6c35d80bcdaab0cce5652550f2233c4e9577b Mon Sep 17 00:00:00 2001 From: Stefan Esser Date: Sat, 22 Nov 2003 21:10:47 +0000 Subject: [PATCH] On error do not leave content_type_dup unitialised. --- main/SAPI.c | 1 + 1 file changed, 1 insertion(+) 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; } -- 2.50.1