Sun, 07 May 2023 11:53:27 +0200
update ucx
src/ucx/linked_list.c | file | annotate | diff | comparison | revisions |
--- a/src/ucx/linked_list.c Fri May 05 18:02:11 2023 +0200 +++ b/src/ucx/linked_list.c Sun May 07 11:53:27 2023 +0200 @@ -355,6 +355,9 @@ // set start node ls = *begin; + // early exit when this list is empty + if (ls == NULL) return; + // check how many elements are already sorted lc = ls; size_t ln = 1;