]> granicus.if.org Git - php/commitdiff
I could have sworn I committed this a while ago. Just a tiny NULL safety
authorRasmus Lerdorf <rasmus@php.net>
Mon, 25 Jul 2005 22:37:35 +0000 (22:37 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Mon, 25 Jul 2005 22:37:35 +0000 (22:37 +0000)
check here.

main/php_variables.c

index b468c51df04ddf6122730daeee80076775f46b11..79caaec646a638d9bbe56f6345d82d0426c1117e 100644 (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;
 }