]> granicus.if.org Git - php/commitdiff
fix uninitialized variable
authorAntony Dovgal <tony2001@php.net>
Mon, 2 Jun 2008 10:27:55 +0000 (10:27 +0000)
committerAntony Dovgal <tony2001@php.net>
Mon, 2 Jun 2008 10:27:55 +0000 (10:27 +0000)
ext/standard/array.c

index fd32ed90c2f8f7c014ba616b8a377a548fec5896..8e0024eae4918d1b15363a15c8bfc12513b57932 100644 (file)
@@ -2111,7 +2111,7 @@ PHP_FUNCTION(array_splice)
        /* 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) {