reduce: fix output

This commit is contained in:
Daniel Marjamäki 2013-01-17 21:02:52 +01:00
parent e32ab4bf65
commit d87d54339d
1 changed files with 1 additions and 1 deletions

View File

@ -664,7 +664,7 @@ int main(int argc, char *argv[])
std::ofstream fout; std::ofstream fout;
if (!print) if (!print)
fout.open(outfilename.c_str()); fout.open(outfilename.c_str());
std::ostream &os = stdout ? std::cout : fout; std::ostream &os = print ? std::cout : fout;
for (std::size_t i = 0; i < filedata.size(); i++) { for (std::size_t i = 0; i < filedata.size(); i++) {
if (!filedata[i].empty()) if (!filedata[i].empty())
os << filedata[i] << std::endl; os << filedata[i] << std::endl;