summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/client.c b/client.c
index aa14da0..d06084c 100644
--- a/client.c
+++ b/client.c
@@ -64,6 +64,9 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
icclient_product *key_product = malloc(sizeof(icclient_product));
key_product->sku = malloc(strlen(sku) + 1);
strcpy(key_product->sku, sku);
+ key_product->description = NULL;
+ key_product->comment = NULL;
+ key_product->image = NULL;
icclient_product *product = *(icclient_product **)bsearch(&key_product
, products, catalog->length, sizeof(icclient_product *)
, prodcmp);