diff -r 003aa0a78e1e -r 7d5a06e32aa8 src/linked_list.c --- a/src/linked_list.c Mon Sep 27 18:57:17 2021 +0200 +++ b/src/linked_list.c Tue Sep 28 18:09:14 2021 +0200 @@ -203,14 +203,14 @@ list->base.cmpfunc = comparator; list->base.itemsize = item_size; list->base.capacity = SIZE_MAX; + list->base.size = 0; list->begin = NULL; + list->end = NULL; list->loc_prev = CX_LL_LOC_PREV; list->loc_next = CX_LL_LOC_NEXT; - CxList result = (CxList) list; - cxLinkedListRecalculateSize(result); - return result; + return (CxList) list; } void cxLinkedListDestroy(CxList list) {