summaryrefslogtreecommitdiff
path: root/http-push.c
diff options
context:
space:
mode:
authorLibravatar Junio C Hamano <gitster@pobox.com>2014-07-16 11:33:11 -0700
committerLibravatar Junio C Hamano <gitster@pobox.com>2014-07-16 11:33:11 -0700
commitd9037eae7e67680016b92e2113e4ab4878660345 (patch)
tree63856b7ca490b2618af80d350ca6ad4737f9b104 /http-push.c
parentMerge branch 'rs/code-cleaning' (diff)
parenthttp-push.c: make CURLOPT_IOCTLDATA a usable pointer (diff)
downloadtgif-d9037eae7e67680016b92e2113e4ab4878660345.tar.xz
Merge branch 'ah/fix-http-push'
An ancient rewrite passed a wrong pointer to a curl library function in a rarely used code path. * ah/fix-http-push: http-push.c: make CURLOPT_IOCTLDATA a usable pointer
Diffstat (limited to 'http-push.c')
-rw-r--r--http-push.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/http-push.c b/http-push.c
index 6c3cc1725a..952f8ede49 100644
--- a/http-push.c
+++ b/http-push.c
@@ -199,7 +199,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);