summaryrefslogtreecommitdiff
path: root/array.c
diff options
context:
space:
mode:
Diffstat (limited to 'array.c')
-rw-r--r--array.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/array.c b/array.c
index 5b2cbed45e..f8c2b2e030 100644
--- a/array.c
+++ b/array.c
@@ -704,7 +704,7 @@ rb_ary_join(ary, sep)
}
break;
default:
- result = rb_obj_as_string(tmp);
+ result = rb_str_dup(rb_obj_as_string(tmp));
break;
}