Skip to content

Commit

Permalink
Bug 799494 - Version 5.10 Fails to import QIF file
Browse files Browse the repository at this point in the history
Require only one split in qif-import:qif-to-gnc, apparently it's too
early to require two.
  • Loading branch information
jralls committed Dec 24, 2024
1 parent c549e20 commit 6531d3e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gnucash/import-export/qif-imp/qif-to-gnc.scm
Original file line number Diff line number Diff line change
Expand Up @@ -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))))
Expand Down

0 comments on commit 6531d3e

Please sign in to comment.