com php-src: Remove unnecesary shadow of new_val: ext/sta ndard/array.c

[email protected] (Sara Golemon)
Newsgroups php.cvs
Message-ID <[email protected]>
Commit:    131fd3baa07b1cdec5fac0d46d59bfbbaf92d9a5
Author:    Sara Golemon <[email protected]>         Tue, 14 Mar 2017 11:29:22 -0700
Parents:   c74bc87c74f48bc55541b3bf2fc67d595f58a3b5
Branches:  master

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

Log:
Remove unnecesary shadow of new_val

Changed paths:
  M  ext/standard/array.c


Diff:
diff --git a/ext/standard/array.c b/ext/standard/array.c
index 6e94ed6..94343dc 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -3989,7 +3989,6 @@ PHP_FUNCTION(array_keys)
 		ZEND_HASH_FILL_PACKED(Z_ARRVAL_P(return_value)) {
 			if (HT_IS_PACKED(arrval) && HT_IS_WITHOUT_HOLES(arrval)) {
 				/* Optimistic case: range(0..n-1) for vector-like packed array */
-				zval new_val;
 				ZVAL_LONG(&new_val, 0);
 				for (; Z_LVAL(new_val) < elem_count; ++Z_LVAL(new_val)) {
 					ZEND_HASH_FILL_ADD(&new_val);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.