mirror of
https://github.com/curl/curl.git
synced 2025-09-19 10:32:44 +03:00
CURLOPT_WRITEFUNCTION.3: minor update of the example
Safely avoid chunk.size garbage value if declared non globally. Closes #7219
This commit is contained in:
parent
fdb32eef17
commit
92c588f04b
|
@ -102,7 +102,7 @@ This will return CURLE_OK.
|
|||
return realsize;
|
||||
}
|
||||
|
||||
struct memory chunk;
|
||||
struct memory chunk = {0};
|
||||
|
||||
/* send all data to this function */
|
||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, cb);
|
||||
|
|
Loading…
Reference in New Issue
Block a user