From c35454440cb2a150129dd90a8383924044d343fa Mon Sep 17 00:00:00 2001 From: Rasmus Lerdorf Date: Mon, 25 Jul 2005 22:37:35 +0000 Subject: I could have sworn I committed this a while ago. Just a tiny NULL safety check here. --- main/php_variables.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'main/php_variables.c') diff --git a/main/php_variables.c b/main/php_variables.c index b468c51df0..79caaec646 100644 --- a/main/php_variables.c +++ b/main/php_variables.c @@ -236,7 +236,7 @@ SAPI_API SAPI_POST_HANDLER_FUNC(php_std_post_handler) SAPI_API SAPI_INPUT_FILTER_FUNC(php_default_input_filter) { /* TODO: check .ini setting here and apply user-defined input filter */ - *new_val_len = val_len; + if(new_val_len) *new_val_len = val_len; return 1; } -- cgit v1.2.1