From d754218777149f842d406495d331854026068e62 Mon Sep 17 00:00:00 2001 From: shyouhei Date: Wed, 4 Feb 2009 23:55:33 +0000 Subject: merge revision(s) 20103: * array.c (rb_ary_join): do not repeat self in a recursive array. [ruby-dev:37019] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8_7@22058 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- array.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'array.c') diff --git a/array.c b/array.c index 7e8c12b683..89f74d01ff 100644 --- a/array.c +++ b/array.c @@ -1405,7 +1405,7 @@ rb_ary_join(ary, sep) case T_STRING: break; case T_ARRAY: - if (rb_inspecting_p(tmp)) { + if (tmp == ary || rb_inspecting_p(tmp)) { tmp = rb_str_new2("[...]"); } else { -- cgit v1.2.3