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

@ -600,7 +600,7 @@ bool Curl_cpool_find(struct Curl_easy *data,
{
struct cpool *cpool = cpool_get_instance(data);
struct cpool_bundle *bundle;
bool result = FALSE;
bool found = FALSE;
DEBUGASSERT(cpool);
DEBUGASSERT(conn_cb);
@ -619,17 +619,17 @@ bool Curl_cpool_find(struct Curl_easy *data,
curr = Curl_node_next(curr);
if(conn_cb(conn, userdata)) {
result = TRUE;
found = TRUE;
break;
}
}
}
if(done_cb) {
result = done_cb(userdata);
found = done_cb(userdata);
}
CPOOL_UNLOCK(cpool, data);
return result;
return found;
}
void Curl_conn_terminate(struct Curl_easy *data,