]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
CURLOPT_READFUNCTION.3: fix variable name in example
authorJay Satiro <raysatiro@yahoo.com>
Mon, 6 Jan 2020 08:01:33 +0000 (03:01 -0500)
committerJay Satiro <raysatiro@yahoo.com>
Mon, 6 Jan 2020 08:01:33 +0000 (03:01 -0500)
Reported-by: Paul Joyce
Fixes https://github.com/curl/curl/issues/4787

docs/libcurl/opts/CURLOPT_READFUNCTION.3

index 30b0925eb3d6aaf9bd39311f45e146deec417224..ceb1c13f952f36bf309a78f952fb3386175dff39 100644 (file)
@@ -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);
 }