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(std::move(mapped.c_str()), + return std::make_unique(std::move(mapped), handle); }