mirror of
https://github.com/curl/curl.git
synced 2026-08-25 10:53:37 +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
|
|
@ -309,7 +309,7 @@ int main(int argc, const char **argv)
|
|||
num_transfers = 3; /* a suitable low default */
|
||||
|
||||
result = curl_global_init(CURL_GLOBAL_ALL);
|
||||
if(result)
|
||||
if(result != CURLE_OK)
|
||||
return (int)result;
|
||||
|
||||
trans = calloc(num_transfers, sizeof(*trans));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue