summaryrefslogtreecommitdiff
path: root/lib/non-ascii.c
diff options
context:
space:
mode:
authorSteve Holme <steve_holme@hotmail.com>2014-12-19 20:41:47 +0000
committerSteve Holme <steve_holme@hotmail.com>2014-12-20 14:43:02 +0000
commit2c7f099253a582545d06fc6b3a4ff017d09c30a9 (patch)
tree7577c434de60d4bc5598668535867b71c9b6a5c7 /lib/non-ascii.c
parentee9de01665b30ec03648c946702c5320f2096f51 (diff)
downloadcurl-2c7f099253a582545d06fc6b3a4ff017d09c30a9.tar.gz
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.
Diffstat (limited to 'lib/non-ascii.c')
-rw-r--r--lib/non-ascii.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/lib/non-ascii.c b/lib/non-ascii.c
index 6c0f9e5a4..6ccb4499e 100644
--- a/lib/non-ascii.c
+++ b/lib/non-ascii.c
@@ -316,14 +316,12 @@ void Curl_convert_close(struct SessionHandle *data)
*/
CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form)
{
- struct FormData *next;
CURLcode result;
if(!data)
return CURLE_BAD_FUNCTION_ARGUMENT;
while(form) {
- next = form->next; /* the following form line */
if(form->type == FORM_DATA) {
result = Curl_convert_to_network(data, form->line, form->length);
/* Curl_convert_to_network calls failf if unsuccessful */
@@ -331,7 +329,7 @@ CURLcode Curl_convert_form(struct SessionHandle *data, struct FormData *form)
return result;
}
- form = next;
+ form = form->next;
}
return CURLE_OK;