gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 57/222: tool_operate: Expression 'config->resume_from' is always


From: gnunet
Subject: [gnurl] 57/222: tool_operate: Expression 'config->resume_from' is always true
Date: Thu, 07 Nov 2019 00:09:13 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 2d5f76f22f0f9c805ccc9332b1abd757a8be3c99
Author: Daniel Stenberg <address@hidden>
AuthorDate: Thu Sep 19 10:33:56 2019 +0200

    tool_operate: Expression 'config->resume_from' is always true
    
    Fixes warning detected by PVS-Studio
    Fixes #4374
---
 src/tool_operate.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/tool_operate.c b/src/tool_operate.c
index 09dfc0c84..5364e8307 100644
--- a/src/tool_operate.c
+++ b/src/tool_operate.c
@@ -977,11 +977,11 @@ static CURLcode create_transfers(struct GlobalConfig 
*global,
 #ifdef __VMS
             /* open file for output, forcing VMS output format into stream
                mode which is needed for stat() call above to always work. */
-            FILE *file = fopen(outfile, config->resume_from?"ab":"wb",
+            FILE *file = fopen(outfile, "ab",
                                "ctx=stm", "rfm=stmlf", "rat=cr", "mrs=0");
 #else
             /* open file for output: */
-            FILE *file = fopen(per->outfile, config->resume_from?"ab":"wb");
+            FILE *file = fopen(per->outfile, "ab");
 #endif
             if(!file) {
               helpf(global->errors, "Can't open '%s'!\n", per->outfile);

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



reply via email to

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