From 15fbd2b4abcc2cd090ffb7ece2336781a50364f7 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Sat, 7 Sep 2019 23:22:12 +0200 Subject: [PATCH] util/UriRelative: use StringIsEqual() --- src/util/UriRelative.cxx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/util/UriRelative.cxx b/src/util/UriRelative.cxx index 7424e052d..7d4234693 100644 --- a/src/util/UriRelative.cxx +++ b/src/util/UriRelative.cxx @@ -28,6 +28,7 @@ */ #include "UriRelative.hxx" +#include "StringAPI.hxx" #include #include @@ -50,7 +51,7 @@ uri_is_child(const char *parent, const char *child) noexcept bool uri_is_child_or_same(const char *parent, const char *child) noexcept { - return strcmp(parent, child) == 0 || uri_is_child(parent, child); + return StringIsEqual(parent, child) || uri_is_child(parent, child); } std::string