summaryrefslogtreecommitdiff
path: root/lib/multi.c
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2023-04-28 18:07:33 +0200
committerDaniel Stenberg <daniel@haxx.se>2023-04-28 23:11:00 +0200
commit9ce7eee07042605045dcfd02a6f5b38ad5c8a05d (patch)
tree7a83474325c43f8d34233dae5bad509b2475ce74 /lib/multi.c
parent31303c34e90949847860db82c4768cab1482beda (diff)
downloadcurl-9ce7eee07042605045dcfd02a6f5b38ad5c8a05d.tar.gz
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
Diffstat (limited to 'lib/multi.c')
-rw-r--r--lib/multi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/multi.c b/lib/multi.c
index 5fcb20fa6..4ee51a153 100644
--- a/lib/multi.c
+++ b/lib/multi.c
@@ -2021,7 +2021,7 @@ static CURLMcode multi_runsingle(struct Curl_multi *multi,
else
#endif
if(conn->bits.conn_to_host)
- hostname = conn->conn_to_host.name;
+ hostname = conn->conn_to_host.name;
else
hostname = conn->host.name;