mirror of
https://github.com/curl/curl.git
synced 2026-07-06 01:37:15 +03:00
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
This commit is contained in:
parent
5f8b9fe81d
commit
6b3dde7fe6
7 changed files with 15 additions and 13 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue