From d072b3cb177ed509b42f70acde039726be4574e0 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Thu, 20 Feb 2020 16:47:28 +0100 Subject: [PATCH] storage/smbclient: remove misplaced .c_str() call --- src/storage/plugins/SmbclientStorage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }