# HG changeset patch # User Matti Hamalainen # Date 1675618814 -7200 # Node ID 2263dd13cf2d60dde2447366dd88d000be613a5d # Parent 1cb9454ec56959f51f969325ceca79693653f95e Cleanup. diff -r 1cb9454ec569 -r 2263dd13cf2d th_datastruct.c --- a/th_datastruct.c Sun Feb 05 04:00:50 2023 +0200 +++ b/th_datastruct.c Sun Feb 05 19:40:14 2023 +0200 @@ -285,8 +285,9 @@ while (curr != NULL) { + th_llist_t *next = curr->next; func(curr, data); - curr = curr->next; + curr = next; } }