diff options
author | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 08:37:42 +0800 |
---|---|---|
committer | ꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id> | 2022-09-20 08:37:42 +0800 |
commit | 6f272634eb23bf3e28009156d271393766da81b6 (patch) | |
tree | 0a85da437b4e2194c4bed3c5a2d71ad633bf8960 | |
parent | 1ece51ed11cd49ff7190c98f3a94623a6a6c614c (diff) |
Fix what's passed to the callback
-rw-r--r-- | shopify.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); |