Commit:    add0833681bba61f1953262f81286cb4a56f0431
Author:    Anatol Belski <a...@php.net>         Sun, 14 Jul 2013 20:44:29 +0200
Parents:   ebad5178c4ae0da124469b1432fb0e890f6147da
Branches:  PHP-5.5 master

Link:       
http://git.php.net/?p=php-src.git;a=commitdiff;h=add0833681bba61f1953262f81286cb4a56f0431

Log:
fix uninitialized memory usage

Changed paths:
  M  ext/standard/array.c


Diff:
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 40a27c0..9b02575 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;


--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to