Skip to content

Commit

Permalink
[examples] Fix initialization of temporary directory variable.
Browse files Browse the repository at this point in the history
  • Loading branch information
ChrisCummins committed Mar 30, 2021
1 parent 7e27594 commit 69d2a59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/RandomSearch.cc
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ Status runSearch(const fs::path& workingDir, std::vector<int>* bestActions, int6
}

void runThread(std::vector<int>* bestActions, int64_t* bestCost) {
const fs::path workingDir = workingDir / fs::unique_path();
const fs::path workingDir = fs::unique_path();
fs::create_directories(workingDir);
if (!runSearch(workingDir, bestActions, bestCost).ok()) {
LOG(ERROR) << "Search failed";
Expand Down

0 comments on commit 69d2a59

Please sign in to comment.