mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
reformatting: cJSON_New_Item
This commit is contained in:
parent
8db7e6d320
commit
55488f66f6
6
cJSON.c
6
cJSON.c
@ -97,7 +97,11 @@ void cJSON_InitHooks(cJSON_Hooks* hooks)
|
|||||||
static cJSON *cJSON_New_Item(void)
|
static cJSON *cJSON_New_Item(void)
|
||||||
{
|
{
|
||||||
cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
|
cJSON* node = (cJSON*)cJSON_malloc(sizeof(cJSON));
|
||||||
if (node) memset(node,0,sizeof(cJSON));
|
if (node)
|
||||||
|
{
|
||||||
|
memset(node, 0, sizeof(cJSON));
|
||||||
|
}
|
||||||
|
|
||||||
return node;
|
return node;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user