Skip to content

Commit 8dfd39b

Browse files
authored
Fix FSA tool crashing on exit after writing to stdout (#82)
1 parent 51748d9 commit 8dfd39b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Core/CompressedStream.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ void CompressedOutputStream::open(const std::string& name) {
103103

104104
void CompressedOutputStream::close() {
105105
if (buf_) {
106-
if (buf_ != std::cin.rdbuf()) {
106+
if (buf_ != std::cout.rdbuf()) {
107107
delete buf_;
108108
}
109109
buf_ = nullptr;

0 commit comments

Comments
 (0)