]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
url.c: Fixed compilation warning when USE_NTLM is not defined
authorSteve Holme <steve_holme@hotmail.com>
Wed, 10 Dec 2014 11:57:11 +0000 (11:57 +0000)
committerSteve Holme <steve_holme@hotmail.com>
Wed, 10 Dec 2014 11:57:11 +0000 (11:57 +0000)
url.c:3078: warning: variable 'credentialsMatch' set but not used

lib/url.c

index dd3118d3e2cd96b31b44c896543b70234ce2b0cb..d191678ca0565d85b9fc8b6ff75f246946533479 100644 (file)
--- a/lib/url.c
+++ b/lib/url.c
@@ -3075,7 +3075,9 @@ ConnectionExists(struct SessionHandle *data,
     curr = bundle->conn_list->head;
     while(curr) {
       bool match = FALSE;
+#if defined(USE_NTLM)
       bool credentialsMatch = FALSE;
+#endif
       size_t pipeLen;
 
       /*
@@ -3189,7 +3191,9 @@ ConnectionExists(struct SessionHandle *data,
           /* one of them was different */
           continue;
         }
+#if defined(USE_NTLM)
         credentialsMatch = TRUE;
+#endif
       }
 
       if(!needle->bits.httpproxy || needle->handler->flags&PROTOPT_SSL ||