mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
oops, a few more core dump things
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1410 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
05b94c02a6
commit
ba8979eb8a
@ -124,6 +124,7 @@ scanDate(const char *buff, int *day, int *month, int *year)
|
||||
time_t secs;
|
||||
struct tm *now;
|
||||
|
||||
if (!buff) return;
|
||||
dupe = strdup (buff);
|
||||
tmp = dupe;
|
||||
first_field = 0x0;
|
||||
@ -177,9 +178,9 @@ scanDate(const char *buff, int *day, int *month, int *year)
|
||||
if(iyear<100)
|
||||
iyear += ((int) ((now->tm_year+1900)/100)) * 100;
|
||||
|
||||
*year=iyear;
|
||||
*month=imonth;
|
||||
*day=iday;
|
||||
if (year) *year=iyear;
|
||||
if (month) *month=imonth;
|
||||
if (day) *day=iday;
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user