We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e32ab4b commit d87d543Copy full SHA for d87d543
tools/reduce.cpp
@@ -664,7 +664,7 @@ int main(int argc, char *argv[])
664
std::ofstream fout;
665
if (!print)
666
fout.open(outfilename.c_str());
667
- std::ostream &os = stdout ? std::cout : fout;
+ std::ostream &os = print ? std::cout : fout;
668
for (std::size_t i = 0; i < filedata.size(); i++) {
669
if (!filedata[i].empty())
670
os << filedata[i] << std::endl;
0 commit comments