From: Rasmus Lerdorf Date: Mon, 25 Jul 2005 22:37:35 +0000 (+0000) Subject: I could have sworn I committed this a while ago. Just a tiny NULL safety X-Git-Tag: RELEASE_0_9~18 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c35454440cb2a150129dd90a8383924044d343fa;p=php I could have sworn I committed this a while ago. Just a tiny NULL safety check here. --- 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; }