changeset 761:2263dd13cf2d

Cleanup.
author Matti Hamalainen <ccr@tnsp.org>
date Sun, 05 Feb 2023 19:40:14 +0200
parents 1cb9454ec569
children 6d3632306728
files th_datastruct.c
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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;
     }
 }