diff options
| author | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-26 23:50:48 +0900 |
|---|---|---|
| committer | Yukihiro "Matz" Matsumoto <[email protected]> | 2021-12-27 10:55:17 +0900 |
| commit | a388d609aefe894aea9499e959a4357944aabf85 (patch) | |
| tree | e8113f776b13da21f6cc82dbcab8208f73b19b8f | |
| parent | 27e57aad0beb6b8ed3797f867d5f76da7fc942bb (diff) | |
| download | mruby-a388d609aefe894aea9499e959a4357944aabf85.tar.gz mruby-a388d609aefe894aea9499e959a4357944aabf85.zip | |
variable.c: need to initialize `size` of iv table.
| -rw-r--r-- | src/variable.c | 1 |
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; |
