summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
authorJohn Wiegley <johnw@newartisans.com>2004-08-17 01:50:38 -0400
committerJohn Wiegley <johnw@newartisans.com>2004-08-17 01:50:38 -0400
commitcd7d7e5b88d0cdca6b183c3b34cea2008136e0ec (patch)
treeec38b784d8cf2bae405d657601e22f96188c4cfe /valexpr.cc
parent3a445455409af9475411d2d12220ae128033cb22 (diff)
downloadfork-ledger-cd7d7e5b88d0cdca6b183c3b34cea2008136e0ec.tar.gz
fork-ledger-cd7d7e5b88d0cdca6b183c3b34cea2008136e0ec.tar.bz2
fork-ledger-cd7d7e5b88d0cdca6b183c3b34cea2008136e0ec.zip
slight fixes
Diffstat (limited to 'valexpr.cc')
-rw-r--r--valexpr.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/valexpr.cc b/valexpr.cc
index c70c8ea1..f0eaa0e3 100644
--- a/valexpr.cc
+++ b/valexpr.cc
@@ -886,7 +886,8 @@ void dump_value_expr(std::ostream& out, const value_expr_t * node)
int main(int argc, char *argv[])
{
- ledger::dump_value_exp(std::cout, ledger::parse_value_expr(argv[1]));
+ std::auto_ptr<ledger::value_expr_t> expr(ledger::parse_value_expr(argv[1]));
+ ledger::dump_value_expr(std::cout, expr.get());
std::cout << std::endl;
}