aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-19 18:19:30 +0000
committerYang Tse <yangsita@gmail.com>2006-07-19 18:19:30 +0000
commit840aacf7dd633a4d03db797f89b567548722544d (patch)
tree4613bf6bc858366507e93a3194820ada3df9e1d3
parentab4256d53a1afdf02fa8b4e7236dc1f6c986d5f4 (diff)
Remove variable declaration shadowing previously declared one
-rw-r--r--lib/http.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/lib/http.c b/lib/http.c
index ac2a9cf3d..3c0f1fb6d 100644
--- a/lib/http.c
+++ b/lib/http.c
@@ -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 */