CURLOPT_READFUNCTION.3: fix variable name in example

Reported-by: Paul Joyce

Fixes https://github.com/curl/curl/issues/4787
This commit is contained in:
Jay Satiro 2020-01-06 03:01:33 -05:00
parent 459d0db45b
commit e9dd17b754

View 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);
}