Skip to content

Commit add0833

Browse files
committed
fix uninitialized memory usage
1 parent ebad517 commit add0833

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ext/standard/array.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1053,7 +1053,7 @@ PHP_FUNCTION(max)
10531053
static int php_array_walk(HashTable *target_hash, zval *userdata, int recursive TSRMLS_DC) /* {{{ */
10541054
{
10551055
zval **args[3], /* Arguments to userland function */
1056-
*retval_ptr, /* Return value - unused */
1056+
*retval_ptr = NULL, /* Return value - unused */
10571057
*key=NULL; /* Entry key */
10581058
char *string_key;
10591059
uint string_key_len;
@@ -2877,7 +2877,7 @@ static int zval_compare(zval **a, zval **b TSRMLS_DC) /* {{{ */
28772877
static int zval_user_compare(zval **a, zval **b TSRMLS_DC) /* {{{ */
28782878
{
28792879
zval **args[2];
2880-
zval *retval_ptr;
2880+
zval *retval_ptr = NULL;
28812881

28822882
args[0] = (zval **) a;
28832883
args[1] = (zval **) b;

0 commit comments

Comments
 (0)