If an account's "total" is empty, return 0

This commit is contained in:
John Wiegley 2009-02-15 22:34:10 -04:00
parent 503a96034e
commit e8c90ef96f

View file

@ -166,7 +166,10 @@ namespace {
value_t get_total(account_t& account) {
assert(account.xdata_);
return account.xdata_->total;
if (account.xdata_->total.is_null())
return 0L;
else
return account.xdata_->total;
}
value_t get_count(account_t& account) {