]> granicus.if.org Git - curl/commitdiff
tool_operate: removed unused variable 'done'
authorDaniel Stenberg <daniel@haxx.se>
Thu, 19 Sep 2019 08:35:25 +0000 (10:35 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 20 Sep 2019 06:08:02 +0000 (08:08 +0200)
Fixes warning detected by PVS-Studio
Fixes #4374

src/tool_operate.c

index 5364e830726e33f151713bb63b6611a162f701cf..316951869b62ebbcaef425af1ab547935f0427d7 100644 (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);