docs: compare result against literal CURLE_OK (where missing)

Also scope to result variables.

Closes #20536
This commit is contained in:
Viktor Szakats 2026-02-07 16:50:54 +01:00
parent 85de995208
commit 02c37d269c
No known key found for this signature in database
164 changed files with 203 additions and 203 deletions

View file

@ -64,7 +64,7 @@ int main(void)
static const char *postthis = "Field=1&Field=2&Field=3";
result = curl_global_init(CURL_GLOBAL_ALL);
if(result)
if(result != CURLE_OK)
return (int)result;
chunk.memory = malloc(1); /* grown as needed by realloc above */