diff options
author | rouzier <rouzier@gmail.com> | 2015-10-04 14:30:07 -0400 |
---|---|---|
committer | Jay Satiro <raysatiro@yahoo.com> | 2015-10-04 17:16:14 -0400 |
commit | b1d55997e53076f96ae9ecc8b03daf3e57ef7318 (patch) | |
tree | 365484824baf33a966eebfdcec6f5df3d9f6bf2f /docs | |
parent | 2eb4f5efe9998b9eb0eda94beb713e89d20fb342 (diff) | |
download | curl-b1d55997e53076f96ae9ecc8b03daf3e57ef7318.tar.gz |
hiperfifo: fix the pointer passed to WRITEDATA
Closes https://github.com/bagder/curl/pull/471
Diffstat (limited to 'docs')
-rw-r--r-- | docs/examples/hiperfifo.c | 2 |
1 files changed, 1 insertions, 1 deletions
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); |