mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
Merge branch 'mruby' into pr-typeerror-string-start-end-with
Conflicts: mrbgems/mruby-string-ext/src/string.c mrbgems/mruby-string-ext/test/string.rb
This commit is contained in:
@@ -62,6 +62,7 @@ mrb_str_modify(mrb_state *mrb, struct RString *s)
|
||||
if (shared->refcnt == 1 && s->ptr == shared->ptr) {
|
||||
s->ptr = shared->ptr;
|
||||
s->aux.capa = shared->len;
|
||||
s->ptr[s->len] = '\0';
|
||||
mrb_free(mrb, shared);
|
||||
}
|
||||
else {
|
||||
|
||||
Reference in New Issue
Block a user