summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnatol Belski <ab@php.net>2013-07-14 20:44:29 +0200
committerAnatol Belski <ab@php.net>2013-07-14 20:44:29 +0200
commitadd0833681bba61f1953262f81286cb4a56f0431 (patch)
treeaa674b8d624ce8b3d8959b5fd0b156fc61f7b130
parentebad5178c4ae0da124469b1432fb0e890f6147da (diff)
downloadphp-git-add0833681bba61f1953262f81286cb4a56f0431.tar.gz
fix uninitialized memory usage
-rw-r--r--ext/standard/array.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 40a27c0536..9b02575276 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -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;
@@ -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;