1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 23:58:49 -05:00

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

This commit is contained in:
Daniel Stenberg 2003-11-06 07:55:45 +00:00
parent 927e392b31
commit bd4c081157

View File

@ -1854,10 +1854,9 @@ CURLcode Curl_perform(struct SessionHandle *data)
to the new URL */
urlchanged = data->change.url_changed;
if ((CURLE_OK == res) && urlchanged) {
char *gotourl;
res = Curl_done(conn);
if(CURLE_OK == res) {
newurl = strdup(data->change.url);
char *gotourl = strdup(data->change.url);
res = Curl_follow(data, gotourl);
if(res)
free(gotourl);