From 6f272634eb23bf3e28009156d271393766da81b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Tue, 20 Sep 2022 08:37:42 +0800 Subject: Fix what's passed to the callback --- shopify.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/shopify.c b/shopify.c index 3e8e7c6..111d79c 100644 --- a/shopify.c +++ b/shopify.c @@ -312,7 +312,7 @@ static enum MHD_Result handle_request(void *cls, struct MHD_Connection *con, if (!strcmp(url, api->url) && !strcmp(method, api->method)) { char *json = NULL; - api->cb(api->arg, session, json); + api->cb(api->arg, session, &json); res = MHD_create_response_from_buffer( strlen(json), json, MHD_RESPMEM_MUST_FREE); -- cgit v1.2.3