diff options
Diffstat (limited to 'libs/libcurl/src/llist.c')
-rw-r--r-- | libs/libcurl/src/llist.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/libs/libcurl/src/llist.c b/libs/libcurl/src/llist.c index e0ec7393d2..e78da7da82 100644 --- a/libs/libcurl/src/llist.c +++ b/libs/libcurl/src/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) |