summaryrefslogtreecommitdiff
path: root/parse.y
diff options
context:
space:
mode:
Diffstat (limited to 'parse.y')
-rw-r--r--parse.y1
1 files changed, 1 insertions, 0 deletions
diff --git a/parse.y b/parse.y
index ac631e9068..ec4a4ac6a8 100644
--- a/parse.y
+++ b/parse.y
@@ -2512,6 +2512,7 @@ parser_ary_new_capa(rb_parser_t *p, long len)
rb_bug("negative array size (or size too big): %ld", len);
}
rb_parser_ary_t *ary = xcalloc(1, sizeof(rb_parser_ary_t));
+ ary->data_type = 0;
ary->len = 0;
ary->capa = len;
if (0 < len) {