hiperfifo: fix the pointer passed to WRITEDATA

Closes https://github.com/bagder/curl/pull/471
This commit is contained in:
rouzier 2015-10-04 14:30:07 -04:00 committed by Jay Satiro
parent 2eb4f5efe9
commit b1d55997e5
1 changed files with 1 additions and 1 deletions

View File

@ -330,7 +330,7 @@ static void new_conn(char *url, GlobalInfo *g )
conn->url = strdup(url);
curl_easy_setopt(conn->easy, CURLOPT_URL, conn->url);
curl_easy_setopt(conn->easy, CURLOPT_WRITEFUNCTION, write_cb);
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, &conn);
curl_easy_setopt(conn->easy, CURLOPT_WRITEDATA, conn);
curl_easy_setopt(conn->easy, CURLOPT_VERBOSE, 1L);
curl_easy_setopt(conn->easy, CURLOPT_ERRORBUFFER, conn->error);
curl_easy_setopt(conn->easy, CURLOPT_PRIVATE, conn);