summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 08:37:42 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2022-09-20 08:37:42 +0800
commit6f272634eb23bf3e28009156d271393766da81b6 (patch)
tree0a85da437b4e2194c4bed3c5a2d71ad633bf8960
parent1ece51ed11cd49ff7190c98f3a94623a6a6c614c (diff)
Fix what's passed to the callback
-rw-r--r--shopify.c2
1 files changed, 1 insertions, 1 deletions
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);