Don't check empty paths for path ignore.

This commit is contained in:
Kimmo Varis 2011-02-01 21:50:22 +02:00
parent 84a988ec50
commit 51a1f64531
1 changed files with 3 additions and 0 deletions

View File

@ -25,6 +25,9 @@ PathMatch::PathMatch(const std::vector<std::string> &masks)
bool PathMatch::Match(const std::string &path)
{
if (path.empty())
return false;
std::vector<std::string>::const_iterator iterMask;
for (iterMask = _masks.begin(); iterMask != _masks.end(); ++iterMask)
{