summaryrefslogtreecommitdiff
path: root/src/stream.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2009-02-05 21:18:37 -0400
committerJohn Wiegley <johnw@newartisans.com>2009-02-05 21:20:09 -0400
commit408b819c6e087593ba61e82b91dda2369ef32f62 (patch)
tree68456c86187e00355d47c5794008b8226bd000e2 /src/stream.cc
parent7b24e8f8e33049fe533cce2d2d473c6122460954 (diff)
downloadfork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.tar.gz
fork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.tar.bz2
fork-ledger-408b819c6e087593ba61e82b91dda2369ef32f62.zip
Greatly simplified the way option and command handlers are defined.
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);