summaryrefslogtreecommitdiff
path: root/product.c
diff options
context:
space:
mode:
authorꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-13 07:06:14 +0800
committerꦌꦫꦶꦏ꧀ꦦꦿꦧꦮꦑꦩꦭ꧀ <erik@darapsa.co.id>2021-06-13 07:06:30 +0800
commitb188f0557911ddb353f8b78d6770ba9fd0114329 (patch)
treefe54cdb1a6fac9bf6822427597c9596f5a3dc066 /product.c
parent07435e79294202706ccf71f91eab48bcd122c459 (diff)
Just use memset instead of a special init function
Diffstat (limited to 'product.c')
-rw-r--r--product.c15
1 files changed, 0 insertions, 15 deletions
diff --git a/product.c b/product.c
index fcb16be..0323192 100644
--- a/product.c
+++ b/product.c
@@ -1,20 +1,6 @@
#include <stdlib.h>
#include "icclient/product.h"
-void icclient_product_init(struct icclient_product *product)
-{
- product->sku = NULL;
- product->description = NULL;
- product->comment = NULL;
- product->thumb = NULL;
- product->image = NULL;
- product->price = .0;
- product->prod_group = NULL;
- product->weight = .0;
- product->author = NULL;
- product->crosssell = NULL;
-}
-
void icclient_product_free(struct icclient_product *product)
{
if (product->crosssell)
@@ -34,5 +20,4 @@ void icclient_product_free(struct icclient_product *product)
free(product->description);
free(product->sku);
free(product);
- product = NULL;
}