summaryrefslogtreecommitdiff
path: root/ext/stringio
diff options
context:
space:
mode:
-rw-r--r--ext/stringio/stringio.c4
1 files changed, 3 insertions, 1 deletions
@@ -180,7 +180,9 @@ check_modifiable(struct StringIO *ptr)
else if (OBJ_FROZEN_RAW(ptr->string)) {
rb_raise(rb_eIOError, "not modifiable string");
}
- rb_str_modify(ptr->string);
}
static VALUE