diff --git a/src/watchman/WatchmanBackend.cc b/src/watchman/WatchmanBackend.cc index 4e79c29..6044c85 100644 --- a/src/watchman/WatchmanBackend.cc +++ b/src/watchman/WatchmanBackend.cc @@ -246,7 +246,7 @@ void WatchmanBackend::writeSnapshot(Watcher &watcher, std::string *snapshotPath) auto temporaryDirectory = std::filesystem::temp_directory_path(); auto temporaryFilePath = temporaryDirectory.append("tmp-parcel-snapshot.txt"); { - std::ofstream ofs(*temporaryFilePath); + std::ofstream ofs(temporaryFilePath); ofs << clockValue; ofs.flush(); ofs.close();