mirror of
https://github.com/curl/curl.git
synced 2026-05-30 23:17:32 +03:00
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:
parent
459d0db45b
commit
e9dd17b754
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue