From b1d55997e53076f96ae9ecc8b03daf3e57ef7318 Mon Sep 17 00:00:00 2001 From: rouzier Date: Sun, 4 Oct 2015 14:30:07 -0400 Subject: hiperfifo: fix the pointer passed to WRITEDATA Closes https://github.com/bagder/curl/pull/471 --- docs/examples/hiperfifo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs/examples') diff --git a/docs/examples/hiperfifo.c b/docs/examples/hiperfifo.c index 63614f7d4..1b5d4f5f5 100644 --- a/docs/examples/hiperfifo.c +++ b/docs/examples/hiperfifo.c @@ -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); -- cgit v1.2.3