util/UriRelative: use StringIsEqual()

This commit is contained in:
Max Kellermann 2019-09-07 23:22:12 +02:00
parent ee36a48dbb
commit 15fbd2b4ab

View File

@ -28,6 +28,7 @@
*/ */
#include "UriRelative.hxx" #include "UriRelative.hxx"
#include "StringAPI.hxx"
#include <assert.h> #include <assert.h>
#include <string.h> #include <string.h>
@ -50,7 +51,7 @@ uri_is_child(const char *parent, const char *child) noexcept
bool bool
uri_is_child_or_same(const char *parent, const char *child) noexcept 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 std::string