summaryrefslogtreecommitdiffhomepage
path: root/src/state.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2014-03-25 11:50:42 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2014-03-25 11:50:42 +0900
commita043eb63ca4b207a79ac9100c0f00ed4cdec13b9 (patch)
tree8aaff73d61f58027d1ec4c552bd810b801aa90e6 /src/state.c
parentb4dd3564ef33b8b7459f908520686e02168e8693 (diff)
parent650651e90904fb8cb8894c5a77609abcface5fba (diff)
downloadmruby-a043eb63ca4b207a79ac9100c0f00ed4cdec13b9.tar.gz
mruby-a043eb63ca4b207a79ac9100c0f00ed4cdec13b9.zip
Merge branch 'master' of github.com:mruby/mruby
Diffstat (limited to 'src/state.c')
-rw-r--r--src/state.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/state.c b/src/state.c
index 612e1ac6e..40affd1bf 100644
--- a/src/state.c
+++ b/src/state.c
@@ -199,6 +199,7 @@ mrb_str_pool(mrb_state *mrb, mrb_value str)
ns->flags = 0;
ns->as.heap.ptr = (char *)mrb_malloc(mrb, (size_t)len+1);
ns->as.heap.len = len;
+ ns->as.heap.aux.capa = len;
if (ptr) {
memcpy(ns->as.heap.ptr, ptr, len);
}