patch from rob browning

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1973 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas
1999-11-22 08:21:16 +00:00
parent 748d9bb0bd
commit 73de2a8cc9

View File

@@ -1361,8 +1361,14 @@ writeAccountGroupToFile( const char *datafile, AccountGroup *grp )
}
err = xaccWriteAccountGroup (fd, grp);
if(0 != err)
{
/* Just close it and return the earlier error. */
close(fd);
return err;
}
close(fd);
err = close(fd);
return err;
}