mirror of
https://github.com/json-c/json-c.git
synced 2026-03-25 07:59:07 +08:00
Changed order of calloc args to match stdlib
Although it is currently working, it's worth to stick with the stdlib definition to avoid further problems
This commit is contained in:
@@ -228,7 +228,7 @@ static struct json_object* json_object_new(enum json_type o_type)
|
||||
{
|
||||
struct json_object *jso;
|
||||
|
||||
jso = (struct json_object*)calloc(sizeof(struct json_object), 1);
|
||||
jso = (struct json_object*)calloc(1, sizeof(struct json_object));
|
||||
if (!jso)
|
||||
return NULL;
|
||||
jso->o_type = o_type;
|
||||
|
||||
Reference in New Issue
Block a user