summaryrefslogtreecommitdiff
path: root/xact.cc
diff options
context:
space:
mode:
Diffstat (limited to 'xact.cc')
-rw-r--r--xact.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/xact.cc b/xact.cc
index dd4269a0..ce4da0d7 100644
--- a/xact.cc
+++ b/xact.cc
@@ -266,6 +266,8 @@ void xact_t::add_to_value(value_t& value)
value += xdata_->value;
}
else if (cost || (! value.is_null() && ! value.is_realzero())) {
+ if (value.is_null())
+ value = amount_t();
value.add(amount, cost);
}
else {