Skip to content

Commit

Permalink
Fixups
Browse files Browse the repository at this point in the history
  • Loading branch information
JCGoran committed Dec 15, 2024
1 parent 161f3ef commit 85a3dbc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/oc/hoc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -959,8 +959,8 @@ void hoc_final_exit(void) {
#endif
ivoc_cleanup();
auto tmp_dir = std::getenv("TEMP");
auto path = std::filesystem::path(tmp_dir ? tmp_dir : "/tmp") / "oc" /
std::to_string(hoc_pid()) / ".hl";
auto path = std::filesystem::path(tmp_dir ? std::string(tmp_dir) : "/tmp") /
("oc" + std::to_string(hoc_pid())) / ".hl";
std::filesystem::remove(path);
}

Expand Down

0 comments on commit 85a3dbc

Please sign in to comment.