tony2001 Mon Jun 2 10:27:55 2008 UTC
Modified files: (Branch: PHP_5_3)
/php-src/ext/standard array.c
Log:
fix uninitialized variable
http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.308.2.21.2.37.2.32&r2=1.308.2.21.2.37.2.33&diff_format=u
Index: php-src/ext/standard/array.c
diff -u php-src/ext/standard/array.c:1.308.2.21.2.37.2.32
php-src/ext/standard/array.c:1.308.2.21.2.37.2.33
--- php-src/ext/standard/array.c:1.308.2.21.2.37.2.32 Fri May 30 10:55:14 2008
+++ php-src/ext/standard/array.c Mon Jun 2 10:27:55 2008
@@ -21,7 +21,7 @@
+----------------------------------------------------------------------+
*/
-/* $Id: array.c,v 1.308.2.21.2.37.2.32 2008/05/30 10:55:14 mattwil Exp $ */
+/* $Id: array.c,v 1.308.2.21.2.37.2.33 2008/06/02 10:27:55 tony2001 Exp $ */
#include "php.h"
#include "php_ini.h"
@@ -2111,7 +2111,7 @@
/* Don't create the array of removed elements if it's not going
* to be used; e.g. only removing and/or replacing elements */
if (return_value_used) {
- int size;
+ int size = 0;
/* Clamp the offset.. */
if (offset > num_in) {
--
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php