summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/client.c b/client.c
index 4bec7bb..61b4f4c 100644
--- a/client.c
+++ b/client.c
@@ -106,10 +106,7 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
} else {
*orderptr = malloc(sizeof(icclient_ord_order));
order = *orderptr;
- order->subtotal = .0;
- order->shipping = .0;
- order->subtotal = .0;
- order->nitems = 0;
+ icclient_ord_init(order);
}
if (item)