mirror of
https://github.com/curl/curl.git
synced 2026-08-02 04:00:30 +03:00
tool_operate: simplify single_transfer
- let the caller do the cleanup on fail - avoid gotos and use direct returns more - use while() loop Closes #18077
This commit is contained in:
parent
6b70e8a838
commit
b2ccfbf2fb
3 changed files with 84 additions and 113 deletions
|
|
@ -45,8 +45,8 @@ void clean_getout(struct OperationConfig *config)
|
|||
node = next;
|
||||
}
|
||||
config->url_list = NULL;
|
||||
single_transfer_cleanup(config);
|
||||
}
|
||||
single_transfer_cleanup(config);
|
||||
}
|
||||
|
||||
bool output_expected(const char *url, const char *uploadfile)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue