From b4791f689f28b05462645db8e6d83639515c358e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=20=EA=A6=AB=EA=A6=B6=20=EA=A6=8F=EA=A7=80?= =?UTF-8?q?=EA=A6=A6=EA=A6=BF=20=EA=A6=A7=20=EA=A6=AE=20=EA=A6=91=20?= =?UTF-8?q?=EA=A6=A9=20=EA=A6=AD=EA=A7=80?= Date: Sun, 6 Oct 2019 23:50:24 +0800 Subject: Let the library user do the malloc --- client.c | 1 - 1 file changed, 1 deletion(-) 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"); } -- cgit v1.2.3