mirror of
https://github.com/curl/curl.git
synced 2026-08-24 19:53:46 +03:00
docs: compare result against literal CURLE_OK (where missing)
Also scope to result variables. Closes #20536
This commit is contained in:
parent
85de995208
commit
02c37d269c
164 changed files with 203 additions and 203 deletions
|
|
@ -104,7 +104,7 @@ int main(void)
|
|||
curl_socket_t sockfd;
|
||||
|
||||
result = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(result)
|
||||
if(result != CURLE_OK)
|
||||
return (int)result;
|
||||
|
||||
curl = curl_easy_init();
|
||||
|
|
@ -163,7 +163,7 @@ int main(void)
|
|||
|
||||
close(sockfd);
|
||||
|
||||
if(result) {
|
||||
if(result != CURLE_OK) {
|
||||
printf("libcurl error: %d\n", result);
|
||||
return 4;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue