gnunet-svn
[Top][All Lists]
Advanced

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

[GNUnet-SVN] [gnurl] 36/208: tool_wrte_cb: remove check for config == NU


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 36/208: tool_wrte_cb: remove check for config == NULL
Date: Wed, 09 Aug 2017 17:33:53 +0200

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

ng0 pushed a commit to annotated tag gnurl-7.55.0
in repository gnurl.

commit d4cc240c19f84c129876b4a28163c961ddfc922c
Author: Daniel Stenberg <address@hidden>
AuthorDate: Sat Jun 17 23:58:03 2017 +0200

    tool_wrte_cb: remove check for config == NULL
    
    ... as it really cannot have reached this far with config being NULL,
    thus this is unnecesary and misleading.
    
    Bug: https://news.ycombinator.com/item?id=14577585 and
    
https://daniel.haxx.se/blog/2017/06/17/curl-doesnt-spew-binary-anymore/comment-page-1/#comment-18356
    
    Forwarded-to-us-by: Jakub Wilk
---
 src/tool_cb_wrt.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/src/tool_cb_wrt.c b/src/tool_cb_wrt.c
index c818abf51..ea52469b0 100644
--- a/src/tool_cb_wrt.c
+++ b/src/tool_cb_wrt.c
@@ -88,9 +88,6 @@ size_t tool_write_cb(char *buffer, size_t sz, size_t nmemb, 
void *userdata)
    */
   const size_t failure = bytes ? 0 : 1;
 
-  if(!config)
-    return failure;
-
 #ifdef DEBUGBUILD
   {
     char *tty = curlx_getenv("CURL_ISATTY");

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



reply via email to

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