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:
Daniel Stenberg 2024-04-20 14:15:39 +02:00
parent d1a8b3519f
commit 5fa594ab7b
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -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);