]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: skip path checks if path is just "/"
authorDaniel Stenberg <daniel@haxx.se>
Wed, 1 Feb 2023 07:26:08 +0000 (08:26 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Wed, 1 Feb 2023 22:04:45 +0000 (23:04 +0100)
commit804d5293f899705198c310c6f76c61a8859da8d7
tree79b3b66a1f65e76e5142ef72dd7fcb75326b4fd1
parent92d4053afd45ee3d9296346e4c495a478bbe8ede
urlapi: skip path checks if path is just "/"

As a miniscule optimization, treat a path of the length 1 as the same as
non-existing, as it can only be a single leading slash, and that's what
we do for no paths as well.

Closes #10385
lib/urlapi.c