From 4d2e81661bbea7164209b5aac28c4f3d3f5dae8c Mon Sep 17 00:00:00 2001 From: Yang Tse Date: Wed, 19 Jul 2006 19:09:56 +0000 Subject: [PATCH] Avoid variable declaration shadowing previously declared one --- src/main.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/main.c b/src/main.c index 5df84d9..0125ddf 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); -- 2.7.4