# HG changeset patch # User Mike Becker # Date 1632845365 -7200 # Node ID 26ae21face3958e1d6a5a53eca94e86b3641045f # Parent 7d5a06e32aa8d4a74a863ce062550545c32289bb# Parent cb944fa1852afbc8af309b05beff76137f8a8f52 Automated merge diff -r cb944fa1852a -r 26ae21face39 src/linked_list.c --- 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) {