From f879d8b9b5fe34235be83d978446e55649c1f3e3 Mon Sep 17 00:00:00 2001 From: matz Date: Wed, 19 Apr 2006 00:51:49 +0000 Subject: * parse.y (list_concat): should not modify nodes other than NODE_ARRAY. [ruby-dev:28583] git-svn-id: http://svn.ruby-lang.org/repos/ruby/branches/ruby_1_8@10098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- parse.y | 2 ++ 1 file changed, 2 insertions(+) (limited to 'parse.y') diff --git a/parse.y b/parse.y index 18f1668e5..d50f06d10 100644 --- a/parse.y +++ b/parse.y @@ -4665,6 +4665,8 @@ list_concat(head, tail) { NODE *last; + if (nd_type(tail) != NODE_ARRAY) + return list_append(head, tail); if (head->nd_next) { last = head->nd_next->nd_end; } -- cgit