diff options
author | Daniel Stenberg <daniel@haxx.se> | 2017-06-17 23:58:03 +0200 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2017-06-17 23:58:03 +0200 |
commit | d4cc240c19f84c129876b4a28163c961ddfc922c (patch) | |
tree | f71a853838a3a10919f7938fb98e48f86ed385e5 | |
parent | 5385450afd61328e7d24b50eeffc2b1571cd9e2f (diff) |
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
-rw-r--r-- | src/tool_cb_wrt.c | 3 |
1 files changed, 0 insertions, 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"); |