non-ascii: Reduce variable usage

Removed 'next' variable in Curl_convert_form(). Rather than setting it
from 'form->next' and using that to set 'form' after the conversion
just use 'form = form->next' instead.
This commit is contained in:
Steve Holme 2014-12-19 20:41:47 +00:00
parent ee9de01665
commit 2c7f099253

View File

@ -316,14 +316,12 @@ void Curl_convert_close(struct SessionHandle *data)
*/ */
CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form) CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form)
{ {
struct FormData *next;
CURLcode result; CURLcode result;
if(!data) if(!data)
return CURLE_BAD_FUNCTION_ARGUMENT; return CURLE_BAD_FUNCTION_ARGUMENT;
while(form) { while(form) {
next = form->next; /* the following form line */
if(form->type == FORM_DATA) { if(form->type == FORM_DATA) {
result = Curl_convert_to_network(data, form->line, form->length); result = Curl_convert_to_network(data, form->line, form->length);
/* Curl_convert_to_network calls failf if unsuccessful */ /* Curl_convert_to_network calls failf if unsuccessful */
@ -331,7 +329,7 @@ CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form)
return result; return result;
} }
form = next; form = form->next;
} }
return CURLE_OK; return CURLE_OK;