aboutsummaryrefslogtreecommitdiffstats
path: root/src/archive/ArchivePlugin.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/archive/ArchivePlugin.cxx')
-rw-r--r--src/archive/ArchivePlugin.cxx5
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());