gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [gnurl] 203/219: tool_formparse: remove redundant assignmen


From: gnunet
Subject: [GNUnet-SVN] [gnurl] 203/219: tool_formparse: remove redundant assignment
Date: Wed, 22 May 2019 19:19:02 +0200

This is an automated email from the git hooks/post-receive script.

ng0 pushed a commit to branch master
in repository gnurl.

commit 27af2ec219244bef24e6d11649d41aad3668da45
Author: Marcel Raad <address@hidden>
AuthorDate: Sun May 12 14:35:22 2019 +0200

    tool_formparse: remove redundant assignment
    
    Just initialize word_begin with the correct value.
    
    Closes https://github.com/curl/curl/pull/3873
---
 src/tool_formparse.c | 5 ++---
 1 file 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) {

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]