From: Steve Holme Date: Wed, 20 Apr 2016 17:07:05 +0000 (+0100) Subject: url.c: Prefer we don't use explicit NULLs in conditions X-Git-Tag: curl-7_49_0~106 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=99980cf904a9d5e59ad6c0d91ad50129b6dfc9b7;p=thirdparty%2Fcurl.git url.c: Prefer we don't use explicit NULLs in conditions Fixed commit fa5fa65a30 to not use NULLs in if condition. --- diff --git a/lib/url.c b/lib/url.c index b50ca86771..792ce777cf 100644 --- a/lib/url.c +++ b/lib/url.c @@ -3444,8 +3444,8 @@ ConnectionExists(struct SessionHandle *data, /* Same for Proxy NTLM authentication */ if(wantProxyNTLMhttp) { - /* Both check->proxyuser and check->proxypasswd could be NULL */ - if(check->proxyuser == NULL || check->proxypasswd == NULL) + /* Both check->proxyuser and check->proxypasswd can be NULL */ + if(!check->proxyuser || !check->proxypasswd) continue; if(!strequal(needle->proxyuser, check->proxyuser) ||