summaryrefslogtreecommitdiffhomepage
path: root/src/variable.c
diff options
context:
space:
mode:
authorYukihiro "Matz" Matsumoto <[email protected]>2021-12-26 23:50:48 +0900
committerYukihiro "Matz" Matsumoto <[email protected]>2021-12-27 10:55:17 +0900
commita388d609aefe894aea9499e959a4357944aabf85 (patch)
treee8113f776b13da21f6cc82dbcab8208f73b19b8f /src/variable.c
parent27e57aad0beb6b8ed3797f867d5f76da7fc942bb (diff)
downloadmruby-a388d609aefe894aea9499e959a4357944aabf85.tar.gz
mruby-a388d609aefe894aea9499e959a4357944aabf85.zip
variable.c: need to initialize `size` of iv table.
Diffstat (limited to 'src/variable.c')
-rw-r--r--src/variable.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/variable.c b/src/variable.c
index 5c1682082..daee93655 100644
--- a/src/variable.c
+++ b/src/variable.c
@@ -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;