list: clean prev/next pointers on remove

This commit is contained in:
Maxim Devaev 2024-04-05 17:48:26 +03:00
parent c40b3ee225
commit fab4c47f17

View File

@ -64,6 +64,8 @@
__typeof__(x_first) m_next = x_item->next; \
m_next->prev = x_item->prev; \
} \
x_item->prev = NULL; \
x_item->next = NULL; \
}
#define US_LIST_REMOVE_C(x_first, x_item, x_count) { \