summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-19 15:43:47 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2023-02-19 15:43:47 +0800
commit79656a6b50f1bf7814b1077dbce509740914dd5c (patch)
treed366b98b20604fcee5ff5546dcfbc0e968987ddf
parentb678fc08133def937a5273f0f962939ab82537d4 (diff)
Add product title
-rw-r--r--interchange.c2
-rw-r--r--interchange.h1
2 files changed, 3 insertions, 0 deletions
diff --git a/interchange.c b/interchange.c
index 5219474..55bbdd0 100644
--- a/interchange.c
+++ b/interchange.c
@@ -84,6 +84,8 @@ void interchange_free_product(struct interchange_product *product)
free(product->comment);
if (product->description)
free(product->description);
+ if (product->title)
+ free(product->title);
free(product->sku);
free(product);
}
diff --git a/interchange.h b/interchange.h
index 38e557f..db82441 100644
--- a/interchange.h
+++ b/interchange.h
@@ -5,6 +5,7 @@
struct interchange_product {
char *sku;
+ char *title;
char *description;
char *comment;
char *thumb;