]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
unitialized variable fix, reported by both Marty Kuhrt and benjamin gerard
authorDaniel Stenberg <daniel@haxx.se>
Thu, 6 Nov 2003 07:55:45 +0000 (07:55 +0000)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 6 Nov 2003 07:55:45 +0000 (07:55 +0000)
lib/transfer.c

index 4d5ea03bd2a5c0cd96360870b710200b7f1990bf..306cb964102bf216426b1de0a9e037966d9257b6 100644 (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);