From: Daniel Stenberg Date: Mon, 23 Apr 2001 06:11:08 +0000 (+0000) Subject: no need to copy the name when re-using the connection, we already have the X-Git-Tag: upstream/7.37.1~16793 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=fde31f0988bebc963260294e4d048cdd0c5aeb99;p=platform%2Fupstream%2Fcurl.git no need to copy the name when re-using the connection, we already have the same name in that buffer from the URL parsing! --- diff --git a/lib/url.c b/lib/url.c index 44d4adef4..013ebac70 100644 --- a/lib/url.c +++ b/lib/url.c @@ -2022,7 +2022,6 @@ static CURLcode Connect(struct UrlData *data, free(conn->path); /* free the previous path pointer */ /* we need these pointers if we speak over a proxy */ - strcpy(conn->gname, old_conn->gname); /* copy the name */ conn->name = conn->gname; conn->hostname = old_conn->gname;