Skip to content

Commit

Permalink
Merge pull request #1711 from jere8184/small_fix
Browse files Browse the repository at this point in the history
small fix
  • Loading branch information
heinezen authored Nov 21, 2024
2 parents 4f0de63 + cf2fd63 commit 6a801e1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libopenage/util/fslike/directory.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,8 @@ std::ostream &Directory::repr(std::ostream &stream) {
}

Directory Directory::get_temp_directory() {
std::string temp_dir_path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr);
std::filesystem::path path = std::filesystem::temp_directory_path() / std::tmpnam(nullptr);
std::string temp_dir_path = path.string();
bool create = true;
Directory directory = Directory(temp_dir_path, create);
return directory;
Expand Down

0 comments on commit 6a801e1

Please sign in to comment.