diff --git a/m-i-list.h b/m-i-list.h index 9a161b91..7b1966ae 100644 --- a/m-i-list.h +++ b/m-i-list.h @@ -257,7 +257,7 @@ typedef struct ilist_head_s { M_C3(ilist_, name, _last_p)(const list_it_t it) \ { \ assert (it != NULL); \ - return it->next == it->head; \ + return it->next == it->head || it->current == it->head; \ } \ \ static inline void \