summaryrefslogtreecommitdiff
path: root/shopify.c
diff options
context:
space:
mode:
Diffstat (limited to 'shopify.c')
-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);