]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: skip the extra dedotdot alloc if no dot in path
authorDaniel Stenberg <daniel@haxx.se>
Thu, 2 Feb 2023 10:15:47 +0000 (11:15 +0100)
committerDaniel Stenberg <daniel@haxx.se>
Thu, 2 Feb 2023 21:34:32 +0000 (22:34 +0100)
commit63c53ea6277bbe287b254b0e313a9b8f1175f3e2
tree75665ffc8e9ebadd505be2357ce31e4e736aa4b8
parent671158242db32032a41e8da89da33d773b481ef8
urlapi: skip the extra dedotdot alloc if no dot in path

Saves an allocation for many/most URLs.

Updates test 1395 accordingly

Closes #10403
lib/urlapi.c
tests/unit/unit1395.c