summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/tool_formparse.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/tool_formparse.c b/src/tool_formparse.c
index 51aebd25a..74d1533e4 100644
--- a/src/tool_formparse.c
+++ b/src/tool_formparse.c
@@ -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) {