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 | f879d8b9b5fe34235be83d978446e55649c1f3e3 (patch) | |
| tree | e41da1bf7be6cb532995096fcf08f983416962f9 /parse.y | |
| parent | 228b59bb404c38caa3611302d5107d005db1417d (diff) | |
| download | ruby-f879d8b9b5fe34235be83d978446e55649c1f3e3.tar.gz ruby-f879d8b9b5fe34235be83d978446e55649c1f3e3.tar.xz ruby-f879d8b9b5fe34235be83d978446e55649c1f3e3.zip | |
* 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
Diffstat (limited to 'parse.y')
| -rw-r--r-- | parse.y | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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; } |
