mirror of
https://github.com/curl/curl.git
synced 2026-07-30 07:08:03 +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
|
|
@ -84,8 +84,8 @@ int main(void)
|
|||
curl_off_t fsize;
|
||||
|
||||
struct curl_slist *headerlist = NULL;
|
||||
static const char buf_1 [] = "RNFR " UPLOAD_FILE_AS;
|
||||
static const char buf_2 [] = "RNTO " RENAME_FILE_TO;
|
||||
static const char buf_1[] = "RNFR " UPLOAD_FILE_AS;
|
||||
static const char buf_2[] = "RNTO " RENAME_FILE_TO;
|
||||
|
||||
/* get a FILE * of the file */
|
||||
hd_src = fopen(LOCAL_FILE, "rb");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue