From: Daniel Stenberg Date: Thu, 6 Nov 2003 07:55:45 +0000 (+0000) Subject: unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard X-Git-Tag: curl-7_11_0~279 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bd4c081157e48e522d94f54d14bf169c2c3e27e3;p=thirdparty%2Fcurl.git unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard --- diff --git a/lib/transfer.c b/lib/transfer.c index 4d5ea03bd2..306cb96410 100644 --- a/lib/transfer.c +++ b/lib/transfer.c @@ -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);