Needed to port skanthak's last commit to the master branch's code base.

This commit is contained in:
John Wiegley 2008-11-23 23:37:01 -04:00
parent c172281858
commit a1717b6dd5

View file

@ -44,11 +44,16 @@ static bool search_for_balance(amount_t& amount,
*prev = next;
amount -= next->amount;
if (! amount) {
transaction_xdata(*next).ptr = NULL;
*xact_next_ptr(next) = NULL;
return true;
} else if (search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
}
else if (search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
{
return true;
}
amount += next->amount;
*prev = temp;