mirror of
https://github.com/pissnet/pissircd.git
synced 2025-07-31 15:32:26 +01:00
on DelListItem set prev/next to NULL on the item itself (not the list)
This commit is contained in:
parent
d7bf35e0d9
commit
4fa468bd4f
1 changed files with 2 additions and 0 deletions
|
@ -450,6 +450,8 @@ void del_ListItem(ListStruct *item, ListStruct **list)
|
|||
item->next->prev = item->prev;
|
||||
if (*list == item)
|
||||
*list = item->next; /* new head */
|
||||
/* And update 'item', prev/next should point nowhere anymore */
|
||||
item->prev = item->next = NULL;
|
||||
}
|
||||
|
||||
/** Add item to list with a 'priority'.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue