mirror of
https://github.com/curl/curl.git
synced 2026-04-21 20:02:12 +03:00
tool_operate: init vars unconditionally in post_per_transfer
In case of (the unlikely) early return, they could otherwise remain uninitialized Spotted by CodeSonar Closes #13430
This commit is contained in:
parent
d1a8b3519f
commit
5fa594ab7b
1 changed files with 3 additions and 3 deletions
|
|
@ -379,12 +379,12 @@ static CURLcode post_per_transfer(struct GlobalConfig *global,
|
|||
struct OperationConfig *config = per->config;
|
||||
int rc;
|
||||
|
||||
if(!curl || !config)
|
||||
return result;
|
||||
|
||||
*retryp = FALSE;
|
||||
*delay = 0; /* for no retry, keep it zero */
|
||||
|
||||
if(!curl || !config)
|
||||
return result;
|
||||
|
||||
if(per->infdopen)
|
||||
close(per->infd);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue