lib: reserve 'result' for CURLcode, even more

Closes #21245
This commit is contained in:
Daniel Stenberg 2026-04-06 23:27:36 +02:00
parent fc3261b284
commit be92f0a2e4
No known key found for this signature in database
GPG key ID: 5CC908FDB71E12C2
8 changed files with 76 additions and 79 deletions

View file

@ -609,11 +609,11 @@ CURLFORMcode curl_formadd(struct curl_httppost **httppost,
struct curl_httppost **last_post, ...)
{
va_list arg;
CURLFORMcode result;
CURLFORMcode form;
va_start(arg, last_post);
result = FormAdd(httppost, last_post, arg);
form = FormAdd(httppost, last_post, arg);
va_end(arg);
return result;
return form;
}
/*