mirror of
https://github.com/transmission/transmission
synced 2025-02-20 21:26:53 +00:00
Fixed logic in tr_wildmat (#4353)
This commit is contained in:
parent
3354634605
commit
9e0b42a61d
1 changed files with 1 additions and 1 deletions
|
@ -203,7 +203,7 @@ bool tr_wildmat(std::string_view text, std::string_view pattern)
|
|||
{
|
||||
// TODO(ckerr): replace wildmat with base/strings/pattern.cc
|
||||
// wildmat wants these to be zero-terminated.
|
||||
return pattern == "*"sv || DoMatch(std::string{ text }.c_str(), std::string{ pattern }.c_str()) != 0;
|
||||
return pattern == "*"sv || DoMatch(std::string{ text }.c_str(), std::string{ pattern }.c_str()) > 0;
|
||||
}
|
||||
|
||||
char const* tr_strerror(int errnum)
|
||||
|
|
Loading…
Reference in a new issue