fix core dump

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@872 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 1998-06-14 05:27:20 +00:00
parent 82fe8e3c74
commit e46712d8d1

View File

@ -327,7 +327,7 @@ char * xaccReadQIFAccList (int fd, AccountGroup *grp, int cat)
} else { } else {
qifline = xaccReadQIFAccount (fd, acc); qifline = xaccReadQIFAccount (fd, acc);
} }
if ('!' == qifline [0]) break; if (qifline && ('!' == qifline [0])) break;
/* free up malloced data if unknown account type */ /* free up malloced data if unknown account type */
if (-1 == xaccAccountGetType (acc)) { if (-1 == xaccAccountGetType (acc)) {