mirror of
https://github.com/curl/curl.git
synced 2026-08-24 11:43:38 +03:00
checksrc: find bad indentation in conditions without open brace
If the previous line starts with if/while/for AND ends with a closed parenthesis and there's an equal number of open and closed parentheses on that line, verify that this line is indented $indent more steps, if not a cpp line. Also adjust the fall-out from this fix. Closes #11054
This commit is contained in:
parent
31303c34e9
commit
9ce7eee070
17 changed files with 49 additions and 23 deletions
|
|
@ -731,7 +731,7 @@ static CURLcode ldap_do(struct Curl_easy *data, bool *done)
|
|||
}
|
||||
|
||||
if(ber)
|
||||
ber_free(ber, 0);
|
||||
ber_free(ber, 0);
|
||||
}
|
||||
|
||||
quit:
|
||||
|
|
@ -1069,7 +1069,7 @@ static int _ldap_url_parse(struct Curl_easy *data,
|
|||
|
||||
*ludpp = NULL;
|
||||
if(!ludp)
|
||||
return LDAP_NO_MEMORY;
|
||||
return LDAP_NO_MEMORY;
|
||||
|
||||
rc = _ldap_url_parse2(data, conn, ludp);
|
||||
if(rc != LDAP_SUCCESS) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue