Skip to content

Commit

Permalink
Fix typo in Apple implementation of getTempFilePath()
Browse files Browse the repository at this point in the history
  • Loading branch information
electroly committed Nov 11, 2023
1 parent 80f29b5 commit 9be2425
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/vm/filesystem.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -173,11 +173,11 @@ std::string getTempFilePath(const std::string& filename) {
const char* temp_path = getenv("TMPDIR");
std::ostringstream ss{};
if (temp_path != nullptr) {
s << temp_path << "/" << filename;
ss << temp_path << "/" << filename;
return ss.str();
} else {
// Default to "/tmp" if TMPDIR is not set
s << "/tmp/" << filename;
ss << "/tmp/" << filename;
return ss.str();
}
#else
Expand Down

0 comments on commit 9be2425

Please sign in to comment.