]> git.ipfire.org Git - thirdparty/curl.git/commit
urlapi: skip a strlen(), pass in zero
authorDaniel Stenberg <daniel@haxx.se>
Fri, 15 Oct 2021 14:29:52 +0000 (16:29 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Fri, 15 Oct 2021 21:22:14 +0000 (23:22 +0200)
commitefffa66f655c04747e14cd734fce7fcb9626c413
treeb2df5fd039e24cc73de4a4fca7494bea5194f897
parentccb466fd36b7a931b005a6d8124c4fbc322a16c7
urlapi: skip a strlen(), pass in zero

... to let curl_easy_escape() itself do the strlen. This avoids a (false
positive) Coverity warning and it avoids us having to store the strlen()
return value in an int variable.

Reviewed-by: Daniel Gustafsson
Closes #7862
lib/urlapi.c
tests/data/test1560