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.
2 parents 9d2a543 + 3f26899 commit 63c9a78Copy full SHA for 63c9a78
json.c
@@ -78,7 +78,7 @@ typedef struct
78
79
static void * default_alloc (size_t size, int zero, void * user_data)
80
{
81
- return zero ? calloc (size, 1) : malloc (size);
+ return zero ? calloc (1, size) : malloc (size);
82
}
83
84
static void default_free (void * ptr, void * user_data)
0 commit comments