Avoid variable declaration shadowing previously declared one
This commit is contained in:
parent
483a586d55
commit
4d2e81661b
@ -4022,10 +4022,10 @@ operate(struct Configurable *config, int argc, char *argv[])
|
|||||||
retry = RETRY_TIMEOUT;
|
retry = RETRY_TIMEOUT;
|
||||||
else if(CURLE_OK == res) {
|
else if(CURLE_OK == res) {
|
||||||
/* Check for HTTP transient errors */
|
/* Check for HTTP transient errors */
|
||||||
char *url=NULL;
|
char *this_url=NULL;
|
||||||
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &url);
|
curl_easy_getinfo(curl, CURLINFO_EFFECTIVE_URL, &this_url);
|
||||||
if(url &&
|
if(this_url &&
|
||||||
curlx_strnequal(url, "http", 4)) {
|
curlx_strnequal(this_url, "http", 4)) {
|
||||||
/* This was HTTP(S) */
|
/* This was HTTP(S) */
|
||||||
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
|
curl_easy_getinfo(curl, CURLINFO_RESPONSE_CODE, &response);
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user