summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 11:35:35 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 11:35:35 (GMT)
commit26a9bf756bf66e77dd7b897f7ad97a7ffdfb3275 (patch)
treef410e478755be750b4816e8c9ca3960cd1ff2bd4 /array.c
parentcb70a92ece6503ffd0b24ebda67cfdb35672e8ee (diff)
array.c: nested encoding
* array.c (ary_join_1): ignore encodings in nested arrays as an initial encoding. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@59685 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'array.c')
-rw-r--r--array.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/array.c b/array.c
index f8faf69..0700a03 100644
--- a/array.c
+++ b/array.c
@@ -2008,6 +2008,7 @@ ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first)
else {
VALUE args[4];
+ *first = FALSE;
args[0] = val;
args[1] = sep;
args[2] = result;