Mon, 08 Feb 2021 00:20:52 +0100
fixes cx_linked_list_add not recalculating end
src/linked_list.c | file | annotate | diff | comparison | revisions |
1.1 --- a/src/linked_list.c Mon Feb 08 00:18:09 2021 +0100 1.2 +++ b/src/linked_list.c Mon Feb 08 00:20:52 2021 +0100 1.3 @@ -69,6 +69,9 @@ 1.4 1.5 void **next = CX_LL_PTR(last, loc_next); 1.6 *next = new_node; 1.7 + if (end != NULL) { 1.8 + *end = cx_linked_list_last(&new_node, NULL, loc_next); 1.9 + } 1.10 if (loc_prev >= 0) { 1.11 void **prev = CX_LL_PTR(new_node, loc_prev); 1.12 *prev = last;