summaryrefslogtreecommitdiff
path: root/alf/alflist.h
diff options
context:
space:
mode:
Diffstat (limited to 'alf/alflist.h')
-rw-r--r--alf/alflist.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/alf/alflist.h b/alf/alflist.h
index e0de033..6f63626 100644
--- a/alf/alflist.h
+++ b/alf/alflist.h
@@ -12,7 +12,7 @@ typedef struct ALFListHeader {
*alf_list_##iteratorvar##_next = alf_list_##iteratorvar##_curr->next; \
alf_list_##iteratorvar##_curr != (listp); \
alf_list_##iteratorvar##_curr = alf_list_##iteratorvar##_next, \
- alf_list_##iteratorvar##_next = alf_list_##iteratorvar##_next->next) \
+ alf_list_##iteratorvar##_next = alf_list_##iteratorvar##_curr->next) \
for (ContainerType *iteratorvar = (ContainerType *)((char *)alf_list_##iteratorvar##_curr - offsetof(ContainerType, containermember)); \
iteratorvar; iteratorvar = NULL) \