summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-28 15:50:34 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-09-28 15:50:34 +0800
commit7a7ad88f83b343c8185006182ff2a8ebf8a94b5c (patch)
tree71f37e1be5108ab05ede209727ac16715968769f
parentcaae1774260ab9d493b63183e8fb0dd460ef62d8 (diff)
Catalog memory is allocated here
-rw-r--r--client.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/client.c b/client.c
index d3030dd..3d20f5f 100644
--- a/client.c
+++ b/client.c
@@ -35,6 +35,7 @@ bool icclient_init(const char *url, const char *certificate)
void icclient_allproducts(icclient_catalog **catalogptr
, size_t (*callback)(void *, size_t, size_t, void *))
{
+ (*catalogptr) = malloc(sizeof(icclient_catalog));
request(callback, (void *)catalogptr, NULL, "%s", "All-Products");
}