mirror of
https://github.com/curl/curl.git
synced 2026-08-26 02:33:33 +03:00
examples: return curl_easy_perform() results
Where missing. Or explicitly `(void)` it where we ignore it on purpose. Reported-by: Joshua Rogers (for `sepheaders.c`) Closes #19052
This commit is contained in:
parent
5cf0a6789d
commit
3049c8e0a0
5 changed files with 10 additions and 7 deletions
|
|
@ -80,7 +80,7 @@ static void run_one(gchar *http, int j)
|
|||
/* Write to the file */
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEDATA, outfile);
|
||||
curl_easy_setopt(curl, CURLOPT_WRITEFUNCTION, write_file);
|
||||
curl_easy_perform(curl);
|
||||
(void)curl_easy_perform(curl);
|
||||
|
||||
fclose(outfile);
|
||||
curl_easy_cleanup(curl);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue