Skip to content

Commit 77216d1

Browse files
committed
zero init mrc_parser_state
1 parent 468a30e commit 77216d1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ccontext.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ mrc_ccontext_new(mrb_state *mrb)
88
mrc_ccontext temp_c = {0};
99
temp_c.mrb = mrb;
1010
mrc_ccontext *c = (mrc_ccontext *)mrc_calloc((&temp_c), 1, sizeof(mrc_ccontext));
11-
c->p = (mrc_parser_state *)mrc_malloc((&temp_c), sizeof(mrc_parser_state));
11+
c->p = (mrc_parser_state *)mrc_calloc((&temp_c), 1, sizeof(mrc_parser_state));
1212
c->options = NULL;
1313
c->mrb = temp_c.mrb;
1414
return c;

0 commit comments

Comments
 (0)