mirror of
https://github.com/curl/curl.git
synced 2026-05-17 23:36:19 +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
1 changed files with 1 additions and 1 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue