tool_operate: removed unused variable 'done'

Fixes warning detected by PVS-Studio
Fixes #4374
This commit is contained in:
Daniel Stenberg 2019-09-19 10:35:25 +02:00
parent 2d5f76f22f
commit a89aeb5451
No known key found for this signature in database
GPG Key ID: 5CC908FDB71E12C2

View File

@ -1968,7 +1968,6 @@ static CURLcode parallel_transfers(struct GlobalConfig *global,
CURLSH *share)
{
CURLM *multi;
bool done = FALSE;
CURLMcode mcode = CURLM_OK;
CURLcode result = CURLE_OK;
int still_running = 1;
@ -1985,7 +1984,7 @@ static CURLcode parallel_transfers(struct GlobalConfig *global,
if(result)
return result;
while(!done && !mcode && (still_running || more_transfers)) {
while(!mcode && (still_running || more_transfers)) {
mcode = curl_multi_poll(multi, NULL, 0, 1000, NULL);
if(!mcode)
mcode = curl_multi_perform(multi, &still_running);