lib: reserve 'result' for CURLcode, even more

Closes #21245
This commit is contained in:
Daniel Stenberg 2026-04-06 23:27:36 +02:00
parent fc3261b284
commit be92f0a2e4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 76 additions and 79 deletions

View file

@ -1305,7 +1305,7 @@ static bool url_attach_existing(struct Curl_easy *data,
bool *waitpipe)
{
struct url_conn_match match;
bool result;
bool success;
DEBUGASSERT(!data->conn);
memset(&match, 0, sizeof(match));
@ -1340,13 +1340,13 @@ static bool url_attach_existing(struct Curl_easy *data,
/* Find a connection in the pool that matches what "data + needle"
* requires. If a suitable candidate is found, it is attached to "data". */
result = Curl_cpool_find(data, needle->destination,
url_match_conn, url_match_result, &match);
success = Curl_cpool_find(data, needle->destination,
url_match_conn, url_match_result, &match);
/* wait_pipe is TRUE if we encounter a bundle that is undecided. There
* is no matching connection then, yet. */
*waitpipe = (bool)match.wait_pipe;
return result;
return success;
}
/*