summaryrefslogtreecommitdiffstats
path: root/libcnary
diff options
context:
space:
mode:
Diffstat (limited to 'libcnary')
-rw-r--r--libcnary/node_list.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/libcnary/node_list.c b/libcnary/node_list.c
index a45457d..b0dca0a 100644
--- a/libcnary/node_list.c
+++ b/libcnary/node_list.c
@@ -142,6 +142,8 @@ int node_list_remove(node_list_t* list, node_t* node) {
142 // we just removed the first element 142 // we just removed the first element
143 if (newnode) { 143 if (newnode) {
144 newnode->prev = NULL; 144 newnode->prev = NULL;
145 } else {
146 list->end = NULL;
145 } 147 }
146 list->begin = newnode; 148 list->begin = newnode;
147 } 149 }