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

index 7571ec8550f2efd4e9171eb5c404974f1ca9f257..f05d734f573999f86122127fc4add50f88e3b08f 100644 (file)
@@ -2298,7 +2298,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) {