From: Jay Satiro Date: Mon, 6 Jan 2020 08:01:33 +0000 (-0500) Subject: CURLOPT_READFUNCTION.3: fix variable name in example X-Git-Tag: curl-7_68_0~9 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e9dd17b754f0f1c3a695af0ddf4d2ba95e4dc69d;p=thirdparty%2Fcurl.git CURLOPT_READFUNCTION.3: fix variable name in example Reported-by: Paul Joyce Fixes https://github.com/curl/curl/issues/4787 --- diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 index 30b0925eb3..ceb1c13f95 100644 --- a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 +++ b/docs/libcurl/opts/CURLOPT_READFUNCTION.3 @@ -95,7 +95,7 @@ void setup(char *uploadthis) curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback); /* pass in suitable argument to callback */ - curl_easy_setopt(curl, CURLOPT_READDATA, uploadthis); + curl_easy_setopt(curl, CURLOPT_READDATA, (void *)file); result = curl_easy_perform(curl); }