From c22b223cb0a48342cef7412e139313e60a913e71 Mon Sep 17 00:00:00 2001 From: nobu Date: Sun, 6 Jun 2010 01:44:38 +0000 Subject: * array.c (rb_ary_product): need to set the length in order to get the entries marked. [ruby-dev:41540] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@28184 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 1 + 1 file changed, 1 insertion(+) (limited to 'array.c') diff --git a/array.c b/array.c index b7ee2f8833..35335f5437 100644 --- a/array.c +++ b/array.c @@ -4306,6 +4306,7 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary) RBASIC(t1)->klass = 0; /* initialize the arrays of arrays */ + ARY_SET_LEN(t0, n); arrays[0] = ary; for (i = 1; i < n; i++) arrays[i] = to_ary(argv[i-1]); -- cgit v1.2.3