gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[gnurl] 19/29: CURLOPT_READFUNCTION.3: fix variable name in example


From: gnunet
Subject: [gnurl] 19/29: CURLOPT_READFUNCTION.3: fix variable name in example
Date: Fri, 10 Jan 2020 23:05:57 +0100

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit e9dd17b754f0f1c3a695af0ddf4d2ba95e4dc69d
Author: Jay Satiro <address@hidden>
AuthorDate: Mon Jan 6 03:01:33 2020 -0500

    CURLOPT_READFUNCTION.3: fix variable name in example
    
    Reported-by: Paul Joyce
    
    Fixes https://github.com/curl/curl/issues/4787
---
 docs/libcurl/opts/CURLOPT_READFUNCTION.3 | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/docs/libcurl/opts/CURLOPT_READFUNCTION.3 
b/docs/libcurl/opts/CURLOPT_READFUNCTION.3
index 30b0925eb..ceb1c13f9 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);
 }

-- 
To stop receiving notification emails like this one, please contact
address@hidden.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]