diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-28 15:50:34 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-09-28 15:50:34 +0800 |
commit | 7a7ad88f83b343c8185006182ff2a8ebf8a94b5c (patch) | |
tree | 71f37e1be5108ab05ede209727ac16715968769f | |
parent | caae1774260ab9d493b63183e8fb0dd460ef62d8 (diff) |
Catalog memory is allocated here
-rw-r--r-- | client.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -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"); } |