From: Minep Date: Sat, 20 Apr 2024 10:20:28 +0000 (+0100) Subject: Merge branch 'master' of github.com:Minep/lunaix-os X-Git-Url: https://scm.lunaixsky.com/lunaix-os.git/commitdiff_plain/92f7ad8ed12975c672869242959c55896d224183?hp=7b8d4c08afde96dbfc24c7f91227b0fcafdf7ef7 Merge branch 'master' of github.com:Minep/lunaix-os --- diff --git a/lunaix-os/includes/lunaix/ds/llist.h b/lunaix-os/includes/lunaix/ds/llist.h index 1eec54b..88e2523 100644 --- a/lunaix-os/includes/lunaix/ds/llist.h +++ b/lunaix-os/includes/lunaix/ds/llist.h @@ -125,7 +125,13 @@ hlist_delete(struct hlist_node* node) { if (!node->pprev) return; + + if (node->next) { + node->next->pprev = node->pprev; + } + *node->pprev = node->next; + node->next = 0; node->pprev = 0; }