tony2001 Mon Jun 2 10:27:42 2008 UTC Modified files: /php-src/ext/standard array.c Log: fix uninitialized variable http://cvs.php.net/viewvc.cgi/php-src/ext/standard/array.c?r1=1.452&r2=1.453&diff_format=u Index: php-src/ext/standard/array.c diff -u php-src/ext/standard/array.c:1.452 php-src/ext/standard/array.c:1.453 --- php-src/ext/standard/array.c:1.452 Fri May 30 10:54:16 2008 +++ php-src/ext/standard/array.c Mon Jun 2 10:27:42 2008 @@ -21,7 +21,7 @@ +----------------------------------------------------------------------+ */ -/* $Id: array.c,v 1.452 2008/05/30 10:54:16 mattwil Exp $ */ +/* $Id: array.c,v 1.453 2008/06/02 10:27:42 tony2001 Exp $ */ #include "php.h" #include "php_ini.h" @@ -2298,7 +2298,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