# HG changeset patch # User Olaf Wintermann # Date 1683453207 -7200 # Node ID 5454ae7bf86b451c4ae1632b73028205ef71e9bf # Parent d218607f5a7ee5ecbc6780b13be46635723fc76b update ucx diff -r d218607f5a7e -r 5454ae7bf86b src/ucx/linked_list.c --- 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;