aboutsummaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
Diffstat (limited to 'util.c')
-rw-r--r--util.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/util.c b/util.c
index 1e44194..1229f2c 100644
--- a/util.c
+++ b/util.c
@@ -130,4 +130,5 @@ listremove(struct list *list)
{
list->next->prev = list->prev;
list->prev->next = list->next;
+ list->next = list->prev = NULL;
}