We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a86e954 commit 55748d3Copy full SHA for 55748d3
ext/json/ext/generator/generator.c
@@ -524,7 +524,8 @@ static const rb_data_type_t JSON_Generator_State_type = {
524
525
static JSON_Generator_State *State_allocate(void)
526
{
527
- JSON_Generator_State *state = ZALLOC(JSON_Generator_State);
+ JSON_Generator_State *state = ALLOC(JSON_Generator_State);
528
+ MEMZERO(state, JSON_Generator_State, 1);
529
return state;
530
}
531
0 commit comments