Skip to content

Commit

Permalink
fix uninitialized memory usage
Browse files Browse the repository at this point in the history
  • Loading branch information
weltling committed Jul 14, 2013
1 parent ebad517 commit add0833
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions ext/standard/array.c
Expand Up @@ -1053,7 +1053,7 @@ PHP_FUNCTION(max)
static int php_array_walk(HashTable *target_hash, zval *userdata, int recursive TSRMLS_DC) /* {{{ */
{
zval **args[3], /* Arguments to userland function */
*retval_ptr, /* Return value - unused */
*retval_ptr = NULL, /* Return value - unused */
*key=NULL; /* Entry key */
char *string_key;
uint string_key_len;
Expand Down Expand Up @@ -2877,7 +2877,7 @@ static int zval_compare(zval **a, zval **b TSRMLS_DC) /* {{{ */
static int zval_user_compare(zval **a, zval **b TSRMLS_DC) /* {{{ */
{
zval **args[2];
zval *retval_ptr;
zval *retval_ptr = NULL;

args[0] = (zval **) a;
args[1] = (zval **) b;
Expand Down

0 comments on commit add0833

Please sign in to comment.