]> git.ipfire.org Git - thirdparty/curl.git/commit
refactor: split resolve_server() into functions
authorEmil Engler <me@emilengler.com>
Mon, 8 Aug 2022 21:58:20 +0000 (23:58 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 12 Aug 2022 14:27:36 +0000 (16:27 +0200)
commit764c958c52edb427f39530f53623e85d34409904
tree1ec4c57c835605856774b11d9d52e90c4765e675
parent193772084f4f61c6b683fad7c1ea7cd775ed5af6
refactor: split resolve_server() into functions

This commit splits the branch-heavy resolve_server() function into
various sub-functions, in order to reduce the amount of nested
if/else-statements.

Beside this, it also removes many else-sequences, by returning in the
previous if-statement.

Closes #9283
lib/url.c