summaryrefslogtreecommitdiffstats
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
commitd5294c7de109185bbfc9f7a39c7ac34bd633b96f (patch)
treee2e424ec2d12afde64f0df9ea139bbd8d03decd3 /array.c
parent5560673cd8d720e01ed955945cc293c444f5ee3c (diff)
downloadruby-d5294c7de109185bbfc9f7a39c7ac34bd633b96f.tar.gz
ruby-d5294c7de109185bbfc9f7a39c7ac34bd633b96f.tar.xz
ruby-d5294c7de109185bbfc9f7a39c7ac34bd633b96f.zip
* array.c (rb_ary_fill): shouldn't yield unless block given.
git-svn-id: http://svn.ruby-lang.org/repos/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 f2ff4702e..f772325d0 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;