summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authormatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-04-26 16:52:54 +0000
committermatz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2006-04-26 16:52:54 +0000
commit8520eae4804837a02c743e73a37d7df929d0c170 (patch)
tree601802a45f1476ab9f6e28f60c20315d0bb6935c /array.c
parent63bc91107059b9be77162a770ddaa68eb2dbdc54 (diff)
* array.c (rb_ary_fill): internalize local variable "beg" to
pacify Coverity. [ruby-core:07770] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10113 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index b61d4c2..240760e 100644
--- a/array.c
+++ b/array.c
@@ -2223,7 +2223,7 @@ rb_ary_fill(argc, argv, ary)
VALUE ary;
{
VALUE item, arg1, arg2;
- long beg, end, len;
+ long beg = 0, end, len;
VALUE *p, *pend;
int block_p = Qfalse;