Skip to content

Commit

Permalink
Fix #62
Browse files Browse the repository at this point in the history
  • Loading branch information
tudurom committed Oct 30, 2019
1 parent 9496a98 commit 55c9b54
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions helpers.c
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,9 @@ list_delete_item(struct list_item **list, struct list_item *item)

if (*list == item) {
*list = item->next;
if (*list != NULL) {
(*list)->prev = NULL;
}
} else {
item->prev->next = item->next;
if (item->next != NULL)
Expand Down

0 comments on commit 55c9b54

Please sign in to comment.