diff options
Diffstat (limited to '')
-rw-r--r-- | src/archive/ArchivePlugin.cxx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/archive/ArchivePlugin.cxx b/src/archive/ArchivePlugin.cxx index 6633c1748..67f469e08 100644 --- a/src/archive/ArchivePlugin.cxx +++ b/src/archive/ArchivePlugin.cxx @@ -20,17 +20,18 @@ #include "config.h" #include "ArchivePlugin.hxx" #include "ArchiveFile.hxx" +#include "fs/Path.hxx" #include "util/Error.hxx" #include <assert.h> ArchiveFile * -archive_file_open(const ArchivePlugin *plugin, const char *path, +archive_file_open(const ArchivePlugin *plugin, Path path, Error &error) { assert(plugin != nullptr); assert(plugin->open != nullptr); - assert(path != nullptr); + assert(!path.IsNull()); ArchiveFile *file = plugin->open(path, error); assert((file == nullptr) == error.IsDefined()); |