Fix InitHooks

FossilOrigin-Name: 013fdb012138b46f78d55efb63d130a56f1037809c5e43714e38331f047472e7
This commit is contained in:
nekobit 2022-10-15 20:52:23 +00:00
parent cef85c7d77
commit 7647698b31
1 changed files with 1 additions and 1 deletions

View File

@ -30,7 +30,7 @@ void mstdnt_set_hooks(struct mstdnt_hooks* hooks)
.malloc_fn = hooks->malloc,
.free_fn = hooks->free,
};
cJSON_InitHooks(&hooks);
cJSON_InitHooks(&cjson_hooks);
_mstdnt_hooks_def = *hooks;
}