db/simple/Directory: use operator== to compare strings

This commit is contained in:
Max Kellermann 2023-09-06 14:30:07 +02:00
parent 851136e6fd
commit 449d59af2f
1 changed files with 1 additions and 1 deletions

View File

@ -90,7 +90,7 @@ Directory::FindChild(std::string_view name) const noexcept
assert(holding_db_lock());
for (const auto &child : children)
if (name.compare(child.GetName()) == 0)
if (child.GetName() == name)
return &child;
return nullptr;