Avoid variable declaration shadowing previously declared one

This commit is contained in:
Yang Tse 2006-07-19 19:09:56 +00:00
parent 483a586d55
commit 4d2e81661b
1 changed files with 4 additions and 4 deletions

View 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);