gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 58/222: tool_operate: removed unused variable 'done'


From: gnunet
Subject: [gnurl] 58/222: tool_operate: removed unused variable 'done'
Date: Thu, 07 Nov 2019 00:09:14 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit a89aeb54519b3b20d093f0d0b0e650344dc399fd
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 10:35:25 2019 +0200

    tool_operate: removed unused variable 'done'
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 src/tool_operate.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/src/tool_operate.c b/src/tool_operate.c
index 5364e8307..316951869 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -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);

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]