sniper Tue Nov 25 19:33:49 2003 EDT
Modified files: (Branch: PHP_4_3)
/php-src/main SAPI.c
Log:
MFH: On error do not leave content_type_dup unitialized.
Index: php-src/main/SAPI.c
diff -u php-src/main/SAPI.c:1.155.2.14 php-src/main/SAPI.c:1.155.2.15
--- php-src/main/SAPI.c:1.155.2.14 Wed Sep 10 04:49:46 2003
+++ php-src/main/SAPI.c Tue Nov 25 19:33:48 2003
@@ -18,7 +18,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: SAPI.c,v 1.155.2.14 2003/09/10 08:49:46 sr Exp $ */
+/* $Id: SAPI.c,v 1.155.2.15 2003/11/26 00:33:48 sniper Exp $ */
#include <ctype.h>
#include <sys/stat.h>
@@ -160,6 +160,7 @@
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;
}
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php