mirror of
https://github.com/moparisthebest/curl
synced 2024-12-24 09:08:49 -05: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