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:
Linas Vepstas 1998-11-23 05:41:42 +00:00
parent 05b94c02a6
commit ba8979eb8a

View File

@ -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;
}
/**