mirror of
https://github.com/moparisthebest/curl
synced 2024-12-25 09:38:54 -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;
|
return realsize;
|
||||||
}
|
}
|
||||||
|
|
||||||
struct memory chunk;
|
struct memory chunk = {0};
|
||||||
|
|
||||||
/* send all data to this function */
|
/* send all data to this function */
|
||||||
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, cb);
|
curl_easy_setopt(curl_handle, CURLOPT_WRITEFUNCTION, cb);
|
||||||
|
Loading…
Reference in New Issue
Block a user