mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug 799494 - Version 5.10 Fails to import QIF file
Require only one split in qif-import:qif-to-gnc, apparently it's too early to require two.
This commit is contained in:
parent
c549e203cb
commit
6531d3e46b
@ -434,7 +434,7 @@
|
||||
;; there aren't at least 2 splits and that will cause a
|
||||
;; UAF in xaccTransRecordPrice. See https://bugs.gnucash.org/show_bug.cgi?id=799420
|
||||
(let ((splits (qif-xtn:splits xtn)))
|
||||
(if (not (or (qif-xtn:mark xtn) (or (null? splits) (null? (cdr splits)))))
|
||||
(if (not (or (qif-xtn:mark xtn) (null? splits)))
|
||||
;; Convert into a GnuCash transaction.
|
||||
(let ((gnc-xtn (xaccMallocTransaction
|
||||
(gnc-get-current-book))))
|
||||
|
Loading…
Reference in New Issue
Block a user