diff options
author | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-19 00:51:49 +0000 |
---|---|---|
committer | matz <matz@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2006-04-19 00:51:49 +0000 |
commit | 7aa4ba303aa768fcb58eea17ad375ec9f15e9a2e (patch) | |
tree | e41da1bf7be6cb532995096fcf08f983416962f9 | |
parent | 8784f9c23558004e3665d36c0ebdcfa2b33d7cae (diff) |
* parse.y (list_concat): should not modify nodes other than
NODE_ARRAY. [ruby-dev:28583]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@10098 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r-- | ChangeLog | 5 | ||||
-rw-r--r-- | parse.y | 2 |
2 files changed, 7 insertions, 0 deletions
@@ -1,3 +1,8 @@ +Wed Apr 19 09:49:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org> + + * parse.y (list_concat): should not modify nodes other than + NODE_ARRAY. [ruby-dev:28583] + Tue Apr 18 17:40:37 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp> * ext/tk/lib/multi-tk.rb: add a binding to a container for a slave IP. @@ -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; } |