mirror of
https://github.com/curl/curl.git
synced 2026-08-25 12:23:44 +03:00
request: make Curl_req_init return void
Since it could not return error and therefore this change removes dead code for the caller. Spotted by CodeSonar. Closes #13423
This commit is contained in:
parent
25236c6a80
commit
926fb00405
3 changed files with 3 additions and 9 deletions
|
|
@ -516,12 +516,7 @@ CURLcode Curl_open(struct Curl_easy **curl)
|
|||
|
||||
data->magic = CURLEASY_MAGIC_NUMBER;
|
||||
|
||||
result = Curl_req_init(&data->req);
|
||||
if(result) {
|
||||
DEBUGF(fprintf(stderr, "Error: request init failed\n"));
|
||||
free(data);
|
||||
return result;
|
||||
}
|
||||
Curl_req_init(&data->req);
|
||||
|
||||
result = Curl_resolver_init(data, &data->state.async.resolver);
|
||||
if(result) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue