summaryrefslogtreecommitdiff
path: root/lib/lists.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/lists.c')
-rw-r--r--lib/lists.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/lists.c b/lib/lists.c
index 55c2b0fd..c14eb4c7 100644
--- a/lib/lists.c
+++ b/lib/lists.c
@@ -16,7 +16,7 @@ add_tail(list *l, node *n)
{
node *z = l->tail;
- n->next = (node *) &l->tail;
+ n->next = (node *) &l->null;
n->prev = z;
z->next = n;
l->tail = n;