We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 468a30e commit 77216d1Copy full SHA for 77216d1
src/ccontext.c
@@ -8,7 +8,7 @@ mrc_ccontext_new(mrb_state *mrb)
8
mrc_ccontext temp_c = {0};
9
temp_c.mrb = mrb;
10
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));
+ c->p = (mrc_parser_state *)mrc_calloc((&temp_c), 1, sizeof(mrc_parser_state));
12
c->options = NULL;
13
c->mrb = temp_c.mrb;
14
return c;
0 commit comments