mirror of
https://github.com/moparisthebest/curl
synced 2025-01-11 05:58:01 -05: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
@ -95,7 +95,7 @@ void setup(char *uploadthis)
|
|||||||
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
curl_easy_setopt(curl, CURLOPT_READFUNCTION, read_callback);
|
||||||
|
|
||||||
/* pass in suitable argument to 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);
|
result = curl_easy_perform(curl);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user