mirror of
https://github.com/DaveGamble/cJSON.git
synced 2023-08-10 21:13:26 +03:00
reformatting: cJSON_InitHooks
This commit is contained in:
parent
18081c03c4
commit
8db7e6d320
4
cJSON.c
4
cJSON.c
@ -81,7 +81,9 @@ static char* cJSON_strdup(const char* str)
|
|||||||
|
|
||||||
void cJSON_InitHooks(cJSON_Hooks* hooks)
|
void cJSON_InitHooks(cJSON_Hooks* hooks)
|
||||||
{
|
{
|
||||||
if (!hooks) { /* Reset hooks */
|
if (!hooks)
|
||||||
|
{
|
||||||
|
/* Reset hooks */
|
||||||
cJSON_malloc = malloc;
|
cJSON_malloc = malloc;
|
||||||
cJSON_free = free;
|
cJSON_free = free;
|
||||||
return;
|
return;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user