diff options
Diffstat (limited to 'src/lib/list.c')
-rw-r--r-- | src/lib/list.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/list.c b/src/lib/list.c index 2d7f3b47..4fc9fa4a 100644 --- a/src/lib/list.c +++ b/src/lib/list.c @@ -62,7 +62,7 @@ void list_add_tail(struct list_head * n, void list_del(struct list_head * e) { del_list(e->prv, e->nxt); - e->nxt = e->prv = NULL; + e->nxt = e->prv = e; } bool list_is_empty(struct list_head * h) |