Skip to content

Commit

Permalink
Fix FSA tool crashing on exit after writing to stdout (#82)
Browse files Browse the repository at this point in the history
  • Loading branch information
curufinwe authored Jan 8, 2025
1 parent 51748d9 commit 8dfd39b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Core/CompressedStream.cc
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ void CompressedOutputStream::open(const std::string& name) {

void CompressedOutputStream::close() {
if (buf_) {
if (buf_ != std::cin.rdbuf()) {
if (buf_ != std::cout.rdbuf()) {
delete buf_;
}
buf_ = nullptr;
Expand Down

0 comments on commit 8dfd39b

Please sign in to comment.