mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fix irksome bug with file import
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1262 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
1f60951ca5
commit
01eaa8db61
@ -169,9 +169,13 @@ static int writeDate( int fd, time_t secs );
|
|||||||
|
|
||||||
/*******************************************************/
|
/*******************************************************/
|
||||||
|
|
||||||
int xaccGetFileIOError (void)
|
int
|
||||||
|
xaccGetFileIOError (void)
|
||||||
{
|
{
|
||||||
return error_code;
|
/* reset the error code */
|
||||||
|
int rc = error_code;
|
||||||
|
error_code = 0;
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/*******************************************************/
|
/*******************************************************/
|
||||||
|
@ -32,6 +32,7 @@
|
|||||||
* also, check out a stock split tooo
|
* also, check out a stock split tooo
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
#include <errno.h>
|
||||||
#include <fcntl.h>
|
#include <fcntl.h>
|
||||||
#include <string.h>
|
#include <string.h>
|
||||||
#include <time.h>
|
#include <time.h>
|
||||||
@ -55,9 +56,13 @@ static int error_code=0; /* error code, if error occurred */
|
|||||||
|
|
||||||
/*******************************************************/
|
/*******************************************************/
|
||||||
|
|
||||||
int xaccGetQIFIOError (void)
|
int
|
||||||
|
xaccGetQIFIOError (void)
|
||||||
{
|
{
|
||||||
return error_code;
|
/* reset the error code */
|
||||||
|
int rc = error_code;
|
||||||
|
error_code = 0;
|
||||||
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
/********************************************************************\
|
/********************************************************************\
|
||||||
|
Loading…
Reference in New Issue
Block a user