]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url.c: Prefer we don't use explicit NULLs in conditions
authorSteve Holme <steve_holme@hotmail.com>
Wed, 20 Apr 2016 17:07:05 +0000 (18:07 +0100)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 20 Apr 2016 17:07:05 +0000 (18:07 +0100)
Fixed commit fa5fa65a30 to not use NULLs in if condition.

lib/url.c

index b50ca8677105cd9238adc3e242130f2e2eb01e22..792ce777cf1273c95815eee7c6db84a1d6c075c0 100644 (file)
--- 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) ||