gnunet-svn
[Top][All Lists]
Advanced

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

[gnurl] 166/282: cookie: remove unnecessary check for 'out != 0'


From: gnunet
Subject: [gnurl] 166/282: cookie: remove unnecessary check for 'out != 0'
Date: Wed, 01 Apr 2020 14:30:31 +0200

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

ng0 pushed a commit to branch master
in repository gnurl.

commit 7730d1157823f781d93ab4df251577d663218ac5
Author: Daniel Stenberg <address@hidden>
AuthorDate: Wed Feb 26 23:50:03 2020 +0100

    cookie: remove unnecessary check for 'out != 0'
    
    ... as it will always be non-NULL at this point.
    
    Detected by Coverity: CID 1459009
---
 lib/cookie.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/cookie.c b/lib/cookie.c
index cf18745bc..69bc04260 100644
--- a/lib/cookie.c
+++ b/lib/cookie.c
@@ -1579,7 +1579,7 @@ static int cookie_output(struct Curl_easy *data,
     free(array);
   }
 
-  if(out && !use_stdout) {
+  if(!use_stdout) {
     fclose(out);
     out = NULL;
     if(Curl_rename(tempstore, filename)) {

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



reply via email to

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