mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
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:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user