summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client.c b/client.c
index e737380..641db88 100644
--- a/client.c
+++ b/client.c
@@ -75,7 +75,7 @@ void icclient_order(icclient_ord_order **orderptr, const char *sku
icclient_ord_order *order = *orderptr;
icclient_ord_item *item = NULL;
- if (order && order->nitems) {
+ if (order) {
icclient_ord_item **items = order->items;
qsort(items, order->nitems, sizeof(icclient_ord_item *), itemcmp);
icclient_ord_item *key_item = malloc(sizeof(icclient_ord_item));