summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/stream.cc')
-rw-r--r--src/stream.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stream.cc b/src/stream.cc
index 535a25a5..94282d2d 100644
--- a/src/stream.cc
+++ b/src/stream.cc
@@ -112,7 +112,7 @@ namespace {
void output_stream_t::initialize(const optional<path>& output_file,
const optional<path>& pager_path)
{
- if (output_file)
+ if (output_file && *output_file != "-")
os = new ofstream(*output_file);
else if (pager_path)
pipe_to_pager_fd = do_fork(&os, *pager_path);