I could have sworn I committed this a while ago. Just a tiny NULL safety

check here.
This commit is contained in:
Rasmus Lerdorf 2005-07-25 22:37:35 +00:00
parent 1fad73d13d
commit c35454440c

View File

@ -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;
}