]> granicus.if.org Git - curl/commitdiff
formdata: fix -Wcomma warning
authorMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 May 2017 08:01:58 +0000 (10:01 +0200)
committerMarcel Raad <Marcel.Raad@teamviewer.com>
Thu, 11 May 2017 08:04:01 +0000 (10:04 +0200)
clang 5.0 complains:
possible misuse of comma operator here [-Wcomma]

Change the comma to a semicolon to fix that.

lib/formdata.c

index f8a93d594bf6c7e091de5c7a48a1f370d0c2e2a9..e48a6276c6118c473dff79e215e732e7b6339f6b 100644 (file)
@@ -96,7 +96,7 @@ AddHttpPost(char *name, size_t namelength,
     post->contenttype = contenttype;
     post->contentheader = contentHeader;
     post->showfilename = showfilename;
-    post->userp = userp,
+    post->userp = userp;
     post->flags = flags | CURL_HTTPPOST_LARGE;
   }
   else