aboutsummaryrefslogtreecommitdiffstats
path: root/src/ExcludeList.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/ExcludeList.cxx')
-rw-r--r--src/ExcludeList.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/ExcludeList.cxx b/src/ExcludeList.cxx
index 0daa432dd..ed04b8d38 100644
--- a/src/ExcludeList.cxx
+++ b/src/ExcludeList.cxx
@@ -63,14 +63,14 @@ ExcludeList::LoadFile(const Path &path_fs)
}
bool
-ExcludeList::Check(const char *name_fs) const
+ExcludeList::Check(const Path &name_fs) const
{
- assert(name_fs != NULL);
+ assert(!name_fs.IsNull());
/* XXX include full path name in check */
for (const auto &i : patterns)
- if (i.Check(name_fs))
+ if (i.Check(name_fs.c_str()))
return true;
return false;