beancount / ledger2beancount

Ledger to Beancount text-based converter
GNU General Public License v3.0
84 stars 14 forks source link

Use of uninitialized value in sprintf at ./bin/ledger2beancount line 1791. #228

Closed tbm closed 4 years ago

tbm commented 4 years ago
Use of uninitialized value in sprintf at ./bin/ledger2beancount line 1791.

with

2020-07-26 * No posting
    Assets:Test                = 10.00 EUR
    Assets:Test

The test case doesn't make a lot of sense, but it's not invalid.

tbm commented 4 years ago

Actually, that test case is interesting. In ledger, Assets:Test is 0 at the end.

But in beancount we generate a pad that sets it to 10. Since we ignore the transaction, we never get the -10...

tbm commented 4 years ago

AFAICT such a transaction doesn't make any sense in ledger, even though it's a valid transaction.