mirror of
https://github.com/curl/curl.git
synced 2026-08-25 14:23:39 +03:00
clang-tidy: enable readability-math-missing-parentheses, adjust code
No functional changes. Also: - md4, md5: drop redundant parentheses from macro values. Closes #20691
This commit is contained in:
parent
29bca12978
commit
65262be0ab
40 changed files with 85 additions and 80 deletions
|
|
@ -1877,7 +1877,7 @@ CURLUcode curl_url_set(CURLU *u, CURLUPart what,
|
|||
{
|
||||
const char *newp;
|
||||
struct dynbuf enc;
|
||||
curlx_dyn_init(&enc, nalloc * 3 + 1 + leadingslash);
|
||||
curlx_dyn_init(&enc, (nalloc * 3) + 1 + leadingslash);
|
||||
|
||||
if(leadingslash && (part[0] != '/')) {
|
||||
CURLcode result = curlx_dyn_addn(&enc, "/", 1);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue