summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-06 23:50:24 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2019-10-06 23:50:24 +0800
commitb4791f689f28b05462645db8e6d83639515c358e (patch)
tree85761b7bba52c86b1a2560c0e830905daaed4621
parentfc555594c636e87ffe2384e6b5240cfa934c6cf4 (diff)
Let the library user do the malloc
-rw-r--r--client.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/client.c b/client.c
index 6726fe6..d01a1bc 100644
--- a/client.c
+++ b/client.c
@@ -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");
}