gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 58/116: url: remove unncessary NULL-check


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 58/116: url: remove unncessary NULL-check
Date: Tue, 05 Dec 2017 14:51:28 +0100

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

ng0 pushed a commit to branch master
in repository gnurl.

commit cbb22cb76d8e516059a112cbecf0ae31d77b2d0c
Author: Daniel Stenberg <address@hidden>
AuthorDate: Mon Nov 6 08:21:30 2017 +0100

    url: remove unncessary NULL-check
    
    Since 'conn' won't be NULL in there and we also access the pointer in
    there without the check.
    
    Coverity CID 1420610
---
 lib/url.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/lib/url.c b/lib/url.c
index aeb0c9027..169eecf71 100644
--- a/lib/url.c
+++ b/lib/url.c
@@ -7221,9 +7221,8 @@ CURLcode Curl_init_do(struct Curl_easy *data, struct 
connectdata *conn)
 {
   struct SingleRequest *k = &data->req;
 
-  if(conn)
-    conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to
-                                 * use */
+  conn->bits.do_more = FALSE; /* by default there's no curl_do_more() to
+                                 use */
 
   data->state.done = FALSE; /* *_done() is not called yet */
   data->state.expect100header = FALSE;

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



reply via email to

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