Skip to content

Commit

Permalink
list: clean prev/next pointers on remove
Browse files Browse the repository at this point in the history
  • Loading branch information
mdevaev committed Apr 5, 2024
1 parent c40b3ee commit fab4c47
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/libs/list.h
Original file line number Diff line number Diff line change
Expand Up @@ -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) { \
Expand Down

0 comments on commit fab4c47

Please sign in to comment.