Skip to content

Commit 6531d3e

Browse files
committed
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.
1 parent c549e20 commit 6531d3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

gnucash/import-export/qif-imp/qif-to-gnc.scm

+1-1
Original file line numberDiff line numberDiff line change
@@ -434,7 +434,7 @@
434434
;; there aren't at least 2 splits and that will cause a
435435
;; UAF in xaccTransRecordPrice. See https://bugs.gnucash.org/show_bug.cgi?id=799420
436436
(let ((splits (qif-xtn:splits xtn)))
437-
(if (not (or (qif-xtn:mark xtn) (or (null? splits) (null? (cdr splits)))))
437+
(if (not (or (qif-xtn:mark xtn) (null? splits)))
438438
;; Convert into a GnuCash transaction.
439439
(let ((gnc-xtn (xaccMallocTransaction
440440
(gnc-get-current-book))))

0 commit comments

Comments
 (0)