Tue, 28 Sep 2021 18:09:25 +0200
Automated merge
--- a/src/linked_list.c Tue Sep 28 18:07:05 2021 +0200 +++ b/src/linked_list.c Tue Sep 28 18:09:25 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) {