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:
parent
320cec284d
commit
27af2ec219
@ -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)
|
static char *get_param_word(char **str, char **end_pos, char endchar)
|
||||||
{
|
{
|
||||||
char *ptr = *str;
|
char *ptr = *str;
|
||||||
char *word_begin = NULL;
|
/* the first non-space char is here */
|
||||||
|
char *word_begin = ptr;
|
||||||
char *ptr2;
|
char *ptr2;
|
||||||
char *escape = NULL;
|
char *escape = NULL;
|
||||||
|
|
||||||
/* the first non-space char is here */
|
|
||||||
word_begin = ptr;
|
|
||||||
if(*ptr == '"') {
|
if(*ptr == '"') {
|
||||||
++ptr;
|
++ptr;
|
||||||
while(*ptr) {
|
while(*ptr) {
|
||||||
|
Loading…
Reference in New Issue
Block a user