diff options
author | John Wiegley <johnw@newartisans.com> | 2012-03-05 05:53:49 -0600 |
---|---|---|
committer | John Wiegley <johnw@newartisans.com> | 2012-03-05 05:53:49 -0600 |
commit | b3e21e8ae240cb2a44a56b174b12d50740264fcc (patch) | |
tree | 1d22431e798e2914bbeacad5ae1047ea4d63c3b3 /src/post.cc | |
parent | fa3805282a7967ebd4dd26d2dc1d5cc1a3140a74 (diff) | |
download | fork-ledger-b3e21e8ae240cb2a44a56b174b12d50740264fcc.tar.gz fork-ledger-b3e21e8ae240cb2a44a56b174b12d50740264fcc.tar.bz2 fork-ledger-b3e21e8ae240cb2a44a56b174b12d50740264fcc.zip |
Guarded a call to add_or_set_value
Diffstat (limited to 'src/post.cc')
-rw-r--r-- | src/post.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/post.cc b/src/post.cc index e0ca149f..191a9142 100644 --- a/src/post.cc +++ b/src/post.cc @@ -606,7 +606,8 @@ bool post_t::valid() const void post_t::add_to_value(value_t& value, const optional<expr_t&>& expr) const { if (xdata_ && xdata_->has_flags(POST_EXT_COMPOUND)) { - add_or_set_value(value, xdata_->compound_value); + if (! xdata_->compound_value.is_null()) + add_or_set_value(value, xdata_->compound_value); } else if (expr) { bind_scope_t bound_scope(*expr->get_context(), |