summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-19 15:09:08 +0800
committerꦌ ꦫꦶ ꦏ꧀ꦦꦿ ꦧ ꦮ ꦑ ꦩ ꦭ꧀ <erik@darapsa.co.id>2020-06-19 15:09:08 +0800
commitb4590ddec4936fd542691ac0d35628afdb9331e1 (patch)
tree671b696be3bbe19c432d82a4bd6f21a6723c3763
parent2ed1fce21c24a54bf09da8b39efd7d889a0b74e3 (diff)
Add thumb member to product
-rw-r--r--client.c2
-rw-r--r--icclient/product.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/client.c b/client.c
index 18eca17..512e3e4 100644
--- a/client.c
+++ b/client.c
@@ -161,6 +161,8 @@ void icclient_freeproduct(icclient_product *product)
free(product->author);
if (product->image)
free(product->image);
+ if (product->thumb)
+ free(product->thumb);
if (product->comment)
free(product->comment);
if (product->description)
diff --git a/icclient/product.h b/icclient/product.h
index a324eef..51efa46 100644
--- a/icclient/product.h
+++ b/icclient/product.h
@@ -10,6 +10,7 @@ struct icclient_product {
char *sku;
char *description;
char *comment;
+ char *thumb;
char *image;
double price;
char *prod_group;