Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mafintosh committed Dec 9, 2024
1 parent b1fb68b commit 728f9fb
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/link.h
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@

#define udx__link_remove(l, v) \
if ((v) == (l)) { \
(l) = NULL; \
(l) = (v)->next; \
if ((v)->next != NULL) (v)->next->prev = NULL; \
} else { \
if ((v)->next != NULL) (v)->next->prev = (v)->prev; \
if ((v)->prev != NULL) (v)->prev->next = (v)->next; \
Expand Down

0 comments on commit 728f9fb

Please sign in to comment.