diff options
-rw-r--r-- | src/shared/list.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/shared/list.h b/src/shared/list.h index 7ed63188ba..2939216adb 100644 --- a/src/shared/list.h +++ b/src/shared/list.h @@ -144,6 +144,8 @@ (i) = (p); \ while ((i) && (i)->name##_prev) \ (i) = (i)->name##_prev; \ + if ((i) == (p)) \ + (i) = (p)->name##_next; \ }); \ (i); \ (i) = (i)->name##_next == (p) ? (p)->name##_next : (i)->name##_next) |