summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/storage/plugins/SmbclientStorage.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/storage/plugins/SmbclientStorage.cxx b/src/storage/plugins/SmbclientStorage.cxx
index 4b47c6af6..f86542383 100644
--- a/src/storage/plugins/SmbclientStorage.cxx
+++ b/src/storage/plugins/SmbclientStorage.cxx
@@ -137,7 +137,7 @@ SmbclientStorage::OpenDirectory(const char *uri_utf8)
throw MakeErrno("Failed to open directory");
}
- return std::make_unique<SmbclientDirectoryReader>(std::move(mapped.c_str()),
+ return std::make_unique<SmbclientDirectoryReader>(std::move(mapped),
handle);
}