From 7647698b31b78b956d36db1487f2406d001b274a Mon Sep 17 00:00:00 2001 From: nekobit Date: Sat, 15 Oct 2022 20:52:23 +0000 Subject: [PATCH] Fix InitHooks FossilOrigin-Name: 013fdb012138b46f78d55efb63d130a56f1037809c5e43714e38331f047472e7 --- src/hooks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hooks.c b/src/hooks.c index ad85ffe..f67e177 100644 --- a/src/hooks.c +++ b/src/hooks.c @@ -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; }