1
0
mirror of https://github.com/moparisthebest/curl synced 2024-11-07 10:05:06 -05:00

Remove variable declaration shadowing previously declared one

This commit is contained in:
Yang Tse 2006-07-19 18:19:30 +00:00
parent ab4256d53a
commit 840aacf7dd

View File

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