http-push.c: make CURLOPT_IOCTLDATA a usable pointer
[gitweb.git] / http-push.c
index 34cb70f90ea14a18848bd270463f5a34dc2c8fd3..3bcf8073eee90f4905911f4bba5f9bddcfb13ca6 100644 (file)
@@ -200,7 +200,7 @@ static void curl_setup_http(CURL *curl, const char *url,
        curl_easy_setopt(curl, CURLOPT_READFUNCTION, fread_buffer);
 #ifndef NO_CURL_IOCTL
        curl_easy_setopt(curl, CURLOPT_IOCTLFUNCTION, ioctl_buffer);
-       curl_easy_setopt(curl, CURLOPT_IOCTLDATA, &buffer);
+       curl_easy_setopt(curl, CURLOPT_IOCTLDATA, buffer);
 #endif
        curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_fn);
        curl_easy_setopt(curl, CURLOPT_NOBODY, 0);