Skip to content

Commit d87d543

Browse files
committed
reduce: fix output
1 parent e32ab4b commit d87d543

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/reduce.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -664,7 +664,7 @@ int main(int argc, char *argv[])
664664
std::ofstream fout;
665665
if (!print)
666666
fout.open(outfilename.c_str());
667-
std::ostream &os = stdout ? std::cout : fout;
667+
std::ostream &os = print ? std::cout : fout;
668668
for (std::size_t i = 0; i < filedata.size(); i++) {
669669
if (!filedata[i].empty())
670670
os << filedata[i] << std::endl;

0 commit comments

Comments
 (0)