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

unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard

parent 927e392b
No related branches found
No related tags found
No related merge requests found
...@@ -1854,10 +1854,9 @@ CURLcode Curl_perform(struct SessionHandle *data) ...@@ -1854,10 +1854,9 @@ CURLcode Curl_perform(struct SessionHandle *data)
to the new URL */ to the new URL */
urlchanged = data->change.url_changed; urlchanged = data->change.url_changed;
if ((CURLE_OK == res) && urlchanged) { if ((CURLE_OK == res) && urlchanged) {
char *gotourl;
res = Curl_done(conn); res = Curl_done(conn);
if(CURLE_OK == res) { if(CURLE_OK == res) {
newurl = strdup(data->change.url); char *gotourl = strdup(data->change.url);
res = Curl_follow(data, gotourl); res = Curl_follow(data, gotourl);
if(res) if(res)
free(gotourl); free(gotourl);
......
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