]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Remove variable declaration shadowing previously declared one
authorYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 18:19:30 +0000 (18:19 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 18:19:30 +0000 (18:19 +0000)
lib/http.c

index ac2a9cf3de811eb3bc3094f11a2f31ad0971544c..3c0f1fb6dbf05902af306ef1561c7272d35aa649 100644 (file)
@@ -1128,17 +1128,15 @@ CURLcode Curl_proxyCONNECT(struct connectdata *conn,
     if(CURLE_OK == result) {
       char *host=(char *)"";
       const char *proxyconn="";
-      char *ptr;
 
-      ptr = checkheaders(data, "Host:");
-      if(!ptr) {
+      if(!checkheaders(data, "Host:")) {
         host = aprintf("Host: %s\r\n", host_port);
         if(!host)
           result = CURLE_OUT_OF_MEMORY;
       }
-      ptr = checkheaders(data, "Proxy-Connection:");
-      if(!ptr)
+      if(!checkheaders(data, "Proxy-Connection:")) {
         proxyconn = "Proxy-Connection: Keep-Alive\r\n";
+      }
 
       if(CURLE_OK == result) {
         /* Send the connect request to the proxy */