tool_formparse: remove redundant assignment

Just initialize word_begin with the correct value.

Closes https://github.com/curl/curl/pull/3873
This commit is contained in:
Marcel Raad 2019-05-12 14:35:22 +02:00
parent 320cec284d
commit 27af2ec219
No known key found for this signature in database
GPG Key ID: FE4D8BC5EE1701DD
1 changed files with 2 additions and 3 deletions

View File

@ -347,12 +347,11 @@ CURLcode tool2curlmime(CURL *curl, tool_mime *m, curl_mime **mime)
static char *get_param_word(char **str, char **end_pos, char endchar)
{
char *ptr = *str;
char *word_begin = NULL;
/* the first non-space char is here */
char *word_begin = ptr;
char *ptr2;
char *escape = NULL;
/* the first non-space char is here */
word_begin = ptr;
if(*ptr == '"') {
++ptr;
while(*ptr) {