mirror of
https://github.com/mruby/mruby
synced 2026-06-08 16:11:16 +00:00
variable.c: need to initialize size of iv table.
This commit is contained in:
@@ -29,6 +29,7 @@ iv_new(mrb_state *mrb)
|
||||
iv_tbl *t;
|
||||
|
||||
t = (iv_tbl*)mrb_malloc(mrb, sizeof(iv_tbl));
|
||||
t->size = 0;
|
||||
t->alloc = 0;
|
||||
t->ptr = NULL;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user