summaryrefslogtreecommitdiff
path: root/valexpr.cc
diff options
context:
space:
mode:
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;
}