mirror of
https://github.com/moparisthebest/curl
synced 2025-03-11 07:39:50 -04:00
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
This commit is contained in:
parent
5385450afd
commit
d4cc240c19
@ -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;
|
const size_t failure = bytes ? 0 : 1;
|
||||||
|
|
||||||
if(!config)
|
|
||||||
return failure;
|
|
||||||
|
|
||||||
#ifdef DEBUGBUILD
|
#ifdef DEBUGBUILD
|
||||||
{
|
{
|
||||||
char *tty = curlx_getenv("CURL_ISATTY");
|
char *tty = curlx_getenv("CURL_ISATTY");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user