diff options
Diffstat (limited to 'src/state.c')
| -rw-r--r-- | src/state.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c index 620ed7d77..9b7ad1c5a 100644 --- a/src/state.c +++ b/src/state.c @@ -176,6 +176,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str) ns->flags = MRB_STR_NOFREE; } else { + ns->flags = 0; ns->ptr = (char *)mrb_malloc(mrb, (size_t)len+1); if (s->ptr) { memcpy(ns->ptr, s->ptr, len); |
