aboutsummaryrefslogtreecommitdiff
path: root/lib/transfer.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-11-06 07:55:45 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-11-06 07:55:45 +0000
commitbd4c081157e48e522d94f54d14bf169c2c3e27e3 (patch)
tree9029caaf1fd35231751e491956b1639fab4c1b78 /lib/transfer.c
parent927e392b310e165f8f03ede87995b2ac5f71bb0f (diff)
unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard
Diffstat (limited to 'lib/transfer.c')
-rw-r--r--lib/transfer.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/transfer.c b/lib/transfer.c
index 4d5ea03bd..306cb9641 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);