mirror of
https://github.com/curl/curl.git
synced 2026-08-25 15:53:39 +03:00
Added error checking for samples.
This commit is contained in:
parent
6388ac7dc1
commit
a3dbbcfd2a
19 changed files with 106 additions and 5 deletions
|
|
@ -122,6 +122,10 @@ int main(void)
|
|||
|
||||
/* Now run off and do what you've been told! */
|
||||
res = curl_easy_perform(curl);
|
||||
/* Check for errors */
|
||||
if(res != CURLE_OK)
|
||||
fprintf(stderr, "curl_easy_perform() failed: %s\n",
|
||||
curl_easy_strerror(res));
|
||||
|
||||
/* clean up the FTP commands list */
|
||||
curl_slist_free_all (headerlist);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue