diff options
author | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-06 23:50:24 +0800 |
---|---|---|
committer | ꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id> | 2019-10-06 23:50:24 +0800 |
commit | b4791f689f28b05462645db8e6d83639515c358e (patch) | |
tree | 85761b7bba52c86b1a2560c0e830905daaed4621 | |
parent | fc555594c636e87ffe2384e6b5240cfa934c6cf4 (diff) |
Let the library user do the malloc
-rw-r--r-- | client.c | 1 |
1 files changed, 0 insertions, 1 deletions
@@ -38,7 +38,6 @@ bool icclient_init(const char *url, const char *certificate) void icclient_allproducts(size_t (*handler)(void *, size_t, size_t, void *) , icclient_catalog **catalogptr) { - (*catalogptr) = malloc(sizeof(icclient_catalog)); request(handler, (void *)catalogptr, NULL, "%s", "All-Products"); } |