summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-28 10:18:14 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2002-01-28 10:18:14 +0000
commite9d17f8a226bcfcf234def5d0ba77fb77a48a534 (patch)
treee2e424ec2d12afde64f0df9ea139bbd8d03decd3 /array.c
parent8a95f7f981c5e25ca26de2b112c4979627a72a02 (diff)
* array.c (rb_ary_fill): shouldn't yield unless block given.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@2025 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 f2ff470..f772325 100644
--- a/array.c
+++ b/array.c
@@ -1390,7 +1390,7 @@ rb_ary_fill(argc, argv, ary)
VALUE item, arg1, arg2;
long beg, end, len;
VALUE *p, *pend;
- int block_p;
+ int block_p = Qfalse;
if (rb_block_given_p()) {
block_p = Qtrue;