aboutsummaryrefslogtreecommitdiffstats
path: root/array.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 11:35:35 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2017-08-29 11:35:35 +0000
commit5530f5fbed7ce75f1e8279f112882479f051588e (patch)
treef410e478755be750b4816e8c9ca3960cd1ff2bd4 /array.c
parent12cd6efccf18d28d4ebbff75bec8c5815bbb39fd (diff)
downloadruby-5530f5fbed7ce75f1e8279f112882479f051588e.tar.gz
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 f8faf697bf..0700a03193 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;