Skip to content

Commit 6a801e1

Browse files
authored
Merge pull request #1711 from jere8184/small_fix
small fix
2 parents 4f0de63 + cf2fd63 commit 6a801e1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

libopenage/util/fslike/directory.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ std::ostream &Directory::repr(std::ostream &stream) {
294294
}
295295

296296
Directory Directory::get_temp_directory() {
297-
std::string temp_dir_path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr);
297+
std::filesystem::path path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr);
298+
std::string temp_dir_path = path.string();
298299
bool create = true;
299300
Directory directory = Directory(temp_dir_path, create);
300301
return directory;

0 commit comments

Comments
 (0)