Skip to content
Snippets Groups Projects
Commit 80a06403 authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

fixed gcc -Wshadow warnings

parent 7ad69f59
No related branches found
No related tags found
No related merge requests found
......@@ -1846,13 +1846,13 @@ CURLcode Curl_perform(struct SessionHandle *data)
to the new URL */
urlchanged = data->change.url_changed;
if ((CURLE_OK == res) && urlchanged) {
char *newurl;
char *gotourl;
res = Curl_done(conn);
if(CURLE_OK == res) {
newurl = strdup(data->change.url);
res = Curl_follow(data, newurl);
res = Curl_follow(data, gotourl);
if(res)
free(newurl);
free(gotourl);
}
}
} while (urlchanged && res == CURLE_OK) ;
......@@ -1861,8 +1861,6 @@ CURLcode Curl_perform(struct SessionHandle *data)
res = Curl_do(&conn);
if(res == CURLE_OK) {
CURLcode res2; /* just a local extra result container */
if(conn->protocol&PROT_FTPS)
/* FTPS, disable ssl while transfering data */
conn->ssl.use = FALSE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment