Fix --reconcile by terminating transaction list correctly
when a match is found.
This commit is contained in:
parent
5d41388ff3
commit
7ce1c4e5a9
1 changed files with 4 additions and 2 deletions
|
|
@ -44,8 +44,10 @@ static bool search_for_balance(amount_t& amount,
|
||||||
*prev = next;
|
*prev = next;
|
||||||
|
|
||||||
amount -= next->amount;
|
amount -= next->amount;
|
||||||
if (! amount ||
|
if (! amount) {
|
||||||
search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
|
transaction_xdata(*next).ptr = NULL;
|
||||||
|
return true;
|
||||||
|
} else if (search_for_balance(amount, xact_next_ptr(next), xact_next(next)))
|
||||||
return true;
|
return true;
|
||||||
amount += next->amount;
|
amount += next->amount;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue