1
0
mirror of https://github.com/moparisthebest/curl synced 2025-01-11 14:08:07 -05:00

curl: remove dead code

The loop never loops (since b889408500), pointed out by Coverity (CID
1451702)

Closes #4133
This commit is contained in:
Daniel Stenberg 2019-07-21 13:11:23 +02:00
parent 71299394ef
commit 7644abf8e8
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1827,7 +1827,6 @@ static CURLcode create_transfers(struct GlobalConfig *global,
my_setopt_str(curl, CURLOPT_ALTSVC, config->altsvc);
#endif
for(;;) {
#ifdef USE_METALINK
if(!metalink && config->use_metalink) {
outs->metalink_parser = metalink_parser_context_new();
@ -1852,11 +1851,6 @@ static CURLcode create_transfers(struct GlobalConfig *global,
per->retry_sleep = per->retry_sleep_default; /* ms */
per->retrystart = tvnow();
/* In all ordinary cases, just break out of loop here */
break; /* curl_easy_perform loop */
}
} /* loop to the next URL */
show_error: