# HG changeset patch # User Mike Becker # Date 1612724726 -3600 # Node ID 8902fcd1e05700aa295f38363980c5f3a9a0182f # Parent 8d506ed6c1c03b64e7aa816af6a8918d5b9cc996 adds missing assignments for new list node diff -r 8d506ed6c1c0 -r 8902fcd1e057 src/linked_list.c --- a/src/linked_list.c Sun Feb 07 19:42:12 2021 +0100 +++ b/src/linked_list.c Sun Feb 07 20:05:26 2021 +0100 @@ -100,6 +100,9 @@ if (node == NULL) return 1; + node->next = NULL; + node->data = elem; + int ret = cx_linked_list_add( (void **) &listdata->begin, (void **) &listdata->end,