summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lib/llist.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/llist.c b/lib/llist.c
index e0ec7393d..e78da7da8 100644
--- a/lib/llist.c
+++ b/lib/llist.c
@@ -106,9 +106,7 @@ Curl_llist_remove(struct Curl_llist *list, struct Curl_llist_element *e,
e->next->prev = NULL;
}
else {
- if(!e->prev)
- list->head = e->next;
- else
+ if(e->prev)
e->prev->next = e->next;
if(!e->next)