1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-24 09:08:49 -05:00

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

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) {