From b188f0557911ddb353f8b78d6770ba9fd0114329 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=A6=8C=EA=A6=AB=EA=A6=B6=EA=A6=8F=EA=A7=80=EA=A6=A6?= =?UTF-8?q?=EA=A6=BF=EA=A6=A7=EA=A6=AE=EA=A6=91=EA=A6=A9=EA=A6=AD=EA=A7=80?= Date: Sun, 13 Jun 2021 07:06:14 +0800 Subject: Just use memset instead of a special init function --- product.c | 15 --------------- 1 file changed, 15 deletions(-) (limited to 'product.c') diff --git a/product.c b/product.c index fcb16be..0323192 100644 --- a/product.c +++ b/product.c @@ -1,20 +1,6 @@ #include #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; } -- cgit v1.2.3