From: Yang Tse Date: Wed, 19 Jul 2006 19:09:56 +0000 (+0000) Subject: Avoid variable declaration shadowing previously declared one X-Git-Tag: curl-7_15_5~80 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=4d2e81661bbea7164209b5aac28c4f3d3f5dae8c;p=thirdparty%2Fcurl.git Avoid variable declaration shadowing previously declared one --- diff --git a/src/main.c b/src/main.c index 5df84d9c74..0125ddf84c 100644 --- a/src/main.c +++ b/src/main.c @@ -4022,10 +4022,10 @@ operate(struct Configurable *config, int argc, char *argv[]) retry = RETRY_TIMEOUT; else if(CURLE_OK == res) { /* Check for HTTP transient errors */ - char *url=NULL; - curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &url); - if(url && - curlx_strnequal(url, "http", 4)) { + char *this_url=NULL; + curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &this_url); + if(this_url && + curlx_strnequal(this_url, "http", 4)) { /* This was HTTP(S) */ curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);