aboutsummaryrefslogtreecommitdiffstats
path: root/io.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-30 14:12:16 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2015-06-30 14:12:16 +0000
commit4506110a5775787e93ffeef1d7afad743a0f93e3 (patch)
tree2e581367a64f32e265f9f490cad5c08cf92b6acb /io.c
parent2c9596c52122887c7d6dd339ed28922d497fefb8 (diff)
downloadruby-4506110a5775787e93ffeef1d7afad743a0f93e3.tar.gz
io.c: remove unnecessary shared
* io.c (rb_io_reopen): FilePathValue() ensures the path NUL-terminated and frozen, so it is unnecessary to make it shared. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@51074 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'io.c')
-rw-r--r--io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/io.c b/io.c
index 184f0e6496..285d829ced 100644
--- a/io.c
+++ b/io.c
@@ -6778,7 +6778,7 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
oflags = rb_io_fmode_oflags(fptr->mode);
}
- fptr->pathv = rb_str_new_frozen(fname);
+ fptr->pathv = fname;
if (fptr->fd < 0) {
fptr->fd = rb_sysopen(fptr->pathv, oflags, 0666);
fptr->stdio_file = 0;