mirror of
https://github.com/curl/curl.git
synced 2026-05-16 03:06:20 +03:00
examples: check more errors, fix cleanups, scope variables
Inspired by Joshua's report on examples. Closes #19055
This commit is contained in:
parent
61dcb56743
commit
64ed2ea196
42 changed files with 874 additions and 785 deletions
|
|
@ -70,7 +70,6 @@ static int xferinfo(void *p,
|
|||
int main(void)
|
||||
{
|
||||
CURL *curl;
|
||||
struct myprogress prog;
|
||||
|
||||
CURLcode res = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(res)
|
||||
|
|
@ -78,6 +77,8 @@ int main(void)
|
|||
|
||||
curl = curl_easy_init();
|
||||
if(curl) {
|
||||
struct myprogress prog;
|
||||
|
||||
prog.lastruntime = 0;
|
||||
prog.curl = curl;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue