From 8a83ebec28100daa8e8019958f74e50cfa382f2d Mon Sep 17 00:00:00 2001 From: twinaphex Date: Tue, 23 Nov 2021 05:13:36 +0100 Subject: [PATCH] JSON handlers only necessary when HAVE_CORE_INFO_CACHE is defined --- core_info.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/core_info.c b/core_info.c index 4400ce25fe..b6958cc516 100644 --- a/core_info.c +++ b/core_info.c @@ -93,6 +93,7 @@ static core_info_state_t core_info_st = { NULL }; +#ifdef HAVE_CORE_INFO_CACHE /* JSON Handlers START */ static bool CCJSONObjectMemberHandler(void *context, @@ -386,6 +387,7 @@ static bool CCJSONEndArrayHandler(void *context) } /* JSON Handlers END */ +#endif /* Note: 'dst' must be zero initialised, or memory * leaks will occur */