diff options
author | Rasmus Lerdorf <rasmus@php.net> | 2005-07-25 22:37:35 +0000 |
---|---|---|
committer | Rasmus Lerdorf <rasmus@php.net> | 2005-07-25 22:37:35 +0000 |
commit | c35454440cb2a150129dd90a8383924044d343fa (patch) | |
tree | 3fdc833a06481291ea7d297a5b9134923219e4c4 /main/php_variables.c | |
parent | 1fad73d13df29db9646e3bb81be08f2ef1f2b8aa (diff) | |
download | php-git-c35454440cb2a150129dd90a8383924044d343fa.tar.gz |
I could have sworn I committed this a while ago. Just a tiny NULL safety
check here.
Diffstat (limited to 'main/php_variables.c')
-rw-r--r-- | main/php_variables.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |