summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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");
}