Remove useless mrb_str_modify

This commit is contained in:
Vladimir Dementyev
2017-10-05 15:22:57 +03:00
committed by GitHub
parent 4c255c7739
commit 43795cb1f1
-2
View File
@@ -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 {