summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorVladimir Dementyev <[email protected]>2017-10-05 15:22:57 +0300
committerGitHub <[email protected]>2017-10-05 15:22:57 +0300
commit43795cb1f1d3b15c005532a43f9e47f11acd5476 (patch)
tree644e0e7b3bbe5495697dd31c5722ad37a9a8197b /src
parent4c255c77399789324e5c4d72787d87ac1fcc49dd (diff)
downloadmruby-43795cb1f1d3b15c005532a43f9e47f11acd5476.tar.gz
mruby-43795cb1f1d3b15c005532a43f9e47f11acd5476.zip
Remove useless mrb_str_modify
Diffstat (limited to 'src')
-rw-r--r--src/io.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/io.c b/src/io.c
index 6f52daf4a..8792bb2aa 100644
--- a/src/io.c
+++ b/src/io.c
@@ -631,8 +631,6 @@ mrb_io_sysread(mrb_state *mrb, mrb_value io)
buf = mrb_str_new(mrb, NULL, maxlen);
}
- mrb_str_modify(mrb, RSTRING(buf));
-
if (RSTRING_LEN(buf) != maxlen) {
buf = mrb_str_resize(mrb, buf, maxlen);
} else {