summaryrefslogtreecommitdiff
path: root/client.c
diff options
context:
space:
mode:
Diffstat (limited to 'client.c')
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index 4edecae..e737380 100644
--- a/client.c
+++ b/client.c
@@ -101,6 +101,7 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
+ (i + 1) * sizeof(icclient_ord_item));
order = *orderptr;
order->items[i] = malloc(sizeof(icclient_ord_item));
+ order->nitems++;
item = order->items[i];
item->product = product;
item->quantity = 1;
@@ -108,7 +109,6 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
order->subtotal += item->product->price;
order->total_cost += item->product->price;
- order->nitems++;
request(NULL, NULL, NULL, "%s%s", "order?mv_arg=", sku);
}