]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
Avoid variable declaration shadowing previously declared one
authorYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 19:09:56 +0000 (19:09 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 19:09:56 +0000 (19:09 +0000)
src/main.c

index 5df84d9c7454a19fa746f29d399f65dae96392d5..0125ddf84cce89a9cc002452b22c97cde9a44916 100644 (file)
@@ -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);