Skip to content

Commit

Permalink
hiperfifo: fix the pointer passed to WRITEDATA
Browse files Browse the repository at this point in the history
Closes #471
  • Loading branch information
rouzier authored and jay committed Oct 4, 2015
1 parent 2eb4f5e commit b1d5599
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/examples/hiperfifo.c
Expand Up @@ -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);
Expand Down

0 comments on commit b1d5599

Please sign in to comment.