Skip to content

Commit 55748d3

Browse files
author
Zachary Scott
committed
Use ALLOC and MEMZERO instead of ZALLOC
1 parent a86e954 commit 55748d3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/json/ext/generator/generator.c

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -524,7 +524,8 @@ static const rb_data_type_t JSON_Generator_State_type = {
524524

525525
static JSON_Generator_State *State_allocate(void)
526526
{
527-
JSON_Generator_State *state = ZALLOC(JSON_Generator_State);
527+
JSON_Generator_State *state = ALLOC(JSON_Generator_State);
528+
MEMZERO(state, JSON_Generator_State, 1);
528529
return state;
529530
}
530531

0 commit comments

Comments
 (0)