]> granicus.if.org Git - curl/commitdiff
hiperfifo: fix the pointer passed to WRITEDATA
authorrouzier <rouzier@gmail.com>
Sun, 4 Oct 2015 18:30:07 +0000 (14:30 -0400)
committerJay Satiro <raysatiro@yahoo.com>
Sun, 4 Oct 2015 21:16:14 +0000 (17:16 -0400)
Closes https://github.com/bagder/curl/pull/471

docs/examples/hiperfifo.c

index 63614f7d4265880c18239212a508fb4b05844546..1b5d4f5f5df00b4db6907fab60e1840aaaccf1b8 100644 (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);