summaryrefslogtreecommitdiff
path: root/lib/formdata.c
diff options
context:
space:
mode:
authorMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-11 14:51:24 +0200
committerMarcel Raad <Marcel.Raad@teamviewer.com>2019-05-12 09:31:09 +0200
commit6b3dde7fe62ea5a557fd1fd323fac2bcd0c2e9be (patch)
treec9bf3ba8868f5d8c8db313cd1cd462dff6a42239 /lib/formdata.c
parent5f8b9fe81d9681033babb4fbcf983304aa7d11c8 (diff)
downloadcurl-6b3dde7fe62ea5a557fd1fd323fac2bcd0c2e9be.tar.gz
build: fix "clarify calculation precedence" warnings
Codacy/CppCheck warns about this. Consistently use parentheses as we already do in some places to silence the warning. Closes https://github.com/curl/curl/pull/3866
Diffstat (limited to 'lib/formdata.c')
-rw-r--r--lib/formdata.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/formdata.c b/lib/formdata.c
index 202d930c7..fd0863ef6 100644
--- a/lib/formdata.c
+++ b/lib/formdata.c
@@ -569,7 +569,7 @@ CURLFORMcode FormAdd(struct curl_httppost **httppost,
if(((form->flags & HTTPPOST_FILENAME) ||
(form->flags & HTTPPOST_BUFFER)) &&
!form->contenttype) {
- char *f = form->flags & HTTPPOST_BUFFER?
+ char *f = (form->flags & HTTPPOST_BUFFER)?
form->showfilename : form->value;
char const *type;
type = Curl_mime_contenttype(f);