diff options
author | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-11 14:51:24 +0200 |
---|---|---|
committer | Marcel Raad <Marcel.Raad@teamviewer.com> | 2019-05-12 09:31:09 +0200 |
commit | 6b3dde7fe62ea5a557fd1fd323fac2bcd0c2e9be (patch) | |
tree | c9bf3ba8868f5d8c8db313cd1cd462dff6a42239 /lib/mime.c | |
parent | 5f8b9fe81d9681033babb4fbcf983304aa7d11c8 (diff) | |
download | curl-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/mime.c')
-rw-r--r-- | lib/mime.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/mime.c b/lib/mime.c index 48147d4f5..6d4bc4fec 100644 --- a/lib/mime.c +++ b/lib/mime.c @@ -821,8 +821,10 @@ static size_t readback_part(curl_mimepart *part, struct curl_slist *hdr = (struct curl_slist *) part->state.ptr; switch(part->state.state) { case MIMESTATE_BEGIN: - mimesetstate(&part->state, part->flags & MIME_BODY_ONLY? MIMESTATE_BODY: - MIMESTATE_CURLHEADERS, part->curlheaders); + mimesetstate(&part->state, + (part->flags & MIME_BODY_ONLY)? + MIMESTATE_BODY: MIMESTATE_CURLHEADERS, + part->curlheaders); break; case MIMESTATE_USERHEADERS: if(!hdr) { |