variable.c: need to initialize `size` of iv table.

parent 27e57aad
...@@ -29,6 +29,7 @@ iv_new(mrb_state *mrb) ...@@ -29,6 +29,7 @@ iv_new(mrb_state *mrb)
iv_tbl *t; iv_tbl *t;
t = (iv_tbl*)mrb_malloc(mrb, sizeof(iv_tbl)); t = (iv_tbl*)mrb_malloc(mrb, sizeof(iv_tbl));
t->size = 0;
t->alloc = 0; t->alloc = 0;
t->ptr = NULL; t->ptr = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment