curl_multi_add_handle: next is already NULL
This commit is contained in:
parent
926cb9ff65
commit
b23fda76c1
@ -427,8 +427,7 @@ CURLMcode curl_multi_add_handle(CURLM *multi_handle,
|
|||||||
multi->easylp = data; /* the new last node */
|
multi->easylp = data; /* the new last node */
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
/* first node, make both prev and next be NULL! */
|
/* first node, make prev NULL! */
|
||||||
data->next = NULL;
|
|
||||||
data->prev = NULL;
|
data->prev = NULL;
|
||||||
multi->easylp = multi->easyp = data; /* both first and last */
|
multi->easylp = multi->easyp = data; /* both first and last */
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user