summaryrefslogtreecommitdiff
path: root/ext/standard/array.c
diff options
context:
space:
mode:
authorAntony Dovgal <tony2001@php.net>2008-06-02 10:27:55 +0000
committerAntony Dovgal <tony2001@php.net>2008-06-02 10:27:55 +0000
commit779769563ccfaee2f4f493d8d1345b64f1117ab5 (patch)
tree72c17a765dc2044a98a57ad5ebbc681a506bd182 /ext/standard/array.c
parent57bcc1689685a41a3a58e1cf47a01404c6c73db6 (diff)
downloadphp-git-779769563ccfaee2f4f493d8d1345b64f1117ab5.tar.gz
fix uninitialized variable
Diffstat (limited to 'ext/standard/array.c')
-rw-r--r--ext/standard/array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/standard/array.c b/ext/standard/array.c
index fd32ed90c2..8e0024eae4 100644
--- a/ext/standard/array.c
+++ b/ext/standard/array.c
@@ -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) {