llist: add Curl_llist_append()

- use for better readability in all places where the "insert_next"
  actually performs an append to the list
- add some tests in unit1300

Closes #13336
This commit is contained in:
Stefan Eissing 2024-04-10 11:51:08 +02:00 committed by Daniel Stenberg
parent 8cee4c9238
commit c296abd42d
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
11 changed files with 79 additions and 20 deletions

View file

@ -349,7 +349,7 @@ static CURLcode ftp_pl_insert_finfo(struct Curl_easy *data,
Curl_set_in_callback(data, false);
if(add) {
Curl_llist_insert_next(llist, llist->tail, finfo, &infop->list);
Curl_llist_append(llist, finfo, &infop->list);
}
else {
Curl_fileinfo_cleanup(infop);