From d87d54339d4fb274b64ddc4bb29e9715df51a770 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Marjam=C3=A4ki?= Date: Thu, 17 Jan 2013 21:02:52 +0100 Subject: [PATCH] reduce: fix output --- tools/reduce.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/reduce.cpp b/tools/reduce.cpp index 6d3654471..4c7a431b7 100644 --- a/tools/reduce.cpp +++ b/tools/reduce.cpp @@ -664,7 +664,7 @@ int main(int argc, char *argv[]) std::ofstream fout; if (!print) 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++) { if (!filedata[i].empty()) os << filedata[i] << std::endl;