storage/smbclient: remove misplaced .c_str() call

This commit is contained in:
Max Kellermann 2020-02-20 16:47:28 +01:00
parent 646fef108a
commit d072b3cb17
1 changed files with 1 additions and 1 deletions

View File

@ -137,7 +137,7 @@ SmbclientStorage::OpenDirectory(const char *uri_utf8)
throw MakeErrno("Failed to open directory"); 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); handle);
} }