diff options
author | Max Kellermann <max@duempel.org> | 2013-06-24 16:17:46 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2013-06-24 16:17:46 +0200 |
commit | ef48eca9cac875f65622daf500bd702e20d666f3 (patch) | |
tree | 52fe455c347fd0f0ab14b471e2482c17c8aed5e6 /src/ExcludeList.cxx | |
parent | 906d2fbadf075b7d8e3a5be7134a9bebb09b7285 (diff) | |
parent | e9e55b08127dc45b4c6045e1f42e34115086a521 (diff) | |
download | mpd-ef48eca9cac875f65622daf500bd702e20d666f3.tar.gz mpd-ef48eca9cac875f65622daf500bd702e20d666f3.tar.xz mpd-ef48eca9cac875f65622daf500bd702e20d666f3.zip |
Merge branch 'master' of git://git.musicpd.org/dk/mpd
Diffstat (limited to 'src/ExcludeList.cxx')
-rw-r--r-- | src/ExcludeList.cxx | 6 |
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; |