From 51a1f6453187883057796ba89fd8b45f3fdc7848 Mon Sep 17 00:00:00 2001 From: Kimmo Varis Date: Tue, 1 Feb 2011 21:50:22 +0200 Subject: [PATCH] Don't check empty paths for path ignore. --- cli/pathmatch.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/cli/pathmatch.cpp b/cli/pathmatch.cpp index 115b34d5a..25ed6cd71 100644 --- a/cli/pathmatch.cpp +++ b/cli/pathmatch.cpp @@ -25,6 +25,9 @@ PathMatch::PathMatch(const std::vector &masks) bool PathMatch::Match(const std::string &path) { + if (path.empty()) + return false; + std::vector::const_iterator iterMask; for (iterMask = _masks.begin(); iterMask != _masks.end(); ++iterMask) {