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

This commit is contained in:
Yukihiro "Matz" Matsumoto
2021-12-26 23:50:48 +09:00
parent 27e57aad0b
commit a388d609ae
+1
View File
@@ -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;