]> granicus.if.org Git - curl/commitdiff
remove variable declaration shadowing previously declared one
authorYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 18:32:38 +0000 (18:32 +0000)
committerYang Tse <yangsita@gmail.com>
Wed, 19 Jul 2006 18:32:38 +0000 (18:32 +0000)
lib/http.c

index 3c0f1fb6dbf05902af306ef1561c7272d35aa649..58564be373986720f1038875fca35deec011477a 100644 (file)
@@ -1771,7 +1771,7 @@ CURLcode Curl_http(struct connectdata *conn, bool *done)
        uses the encoded host name! */
     if(conn->host.dispname != conn->host.name) {
       char *url = data->change.url;
-      char *ptr = strstr(url, conn->host.dispname);
+      ptr = strstr(url, conn->host.dispname);
       if(ptr) {
         /* This is where the display name starts in the URL, now replace this
            part with the encoded name. TODO: This method of replacing the host