summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
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 {