]> granicus.if.org Git - php/commitdiff
initialize these to NULL
authorSterling Hughes <sterling@php.net>
Tue, 20 May 2003 18:18:56 +0000 (18:18 +0000)
committerSterling Hughes <sterling@php.net>
Tue, 20 May 2003 18:18:56 +0000 (18:18 +0000)
ext/standard/array.c
ext/standard/basic_functions.c

index 01187f3871101dafdcf056079dd7e01d6a0ce791..2b0e36a4deafdc186514467d6e9894428b97804b 100644 (file)
@@ -530,7 +530,7 @@ static int array_user_compare(const void *a, const void *b TSRMLS_DC)
        args[0] = (zval **) f->pData;
        args[1] = (zval **) s->pData;
 
-       if (fast_call_user_function(EG(function_table), NULL, *BG(user_compare_func_name), &retval_ptr, 2, args, 0, NULL, &BG(user_compare_func_ptr) TSRMLS_CC) == SUCCESS
+       if (fast_call_user_function(EG(function_table), NULL, *BG(user_compare_func_name), &retval_ptr, 2, args, 0, NULL, &BG(user_compare_func_ptr) TSRMLS_CC)== SUCCESS
                && retval_ptr) {
                long retval;
 
index ed069b04a2b2b7b23a6fc178fdc7e388b567971b..edcdabf5c82a555758f5fba918faa92e6918d711 100644 (file)
@@ -1012,6 +1012,8 @@ static void basic_globals_ctor(php_basic_globals *basic_globals_p TSRMLS_DC)
        BG(user_tick_functions) = NULL;
        BG(aggregation_table) = NULL;
        BG(user_filter_map) = NULL;
+       BG(user_compare_func_ptr) = NULL;
+       BG(array_walk_func_ptr) = NULL;
        zend_hash_init(&BG(sm_protected_env_vars), 5, NULL, NULL, 1);
        BG(sm_allowed_env_vars) = NULL;