mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
fixes for core dumps
git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@1409 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
9394bc404f
commit
05b94c02a6
@ -2,6 +2,7 @@
|
||||
* date.c -- utility functions to handle the date (adjusting, get *
|
||||
* current date, etc.) for xacc (X-Accountant) *
|
||||
* Copyright (C) 1997 Robin D. Clark *
|
||||
* Copyright (C) 1998 Linas Vepstas *
|
||||
* *
|
||||
* This program is free software; you can redistribute it and/or *
|
||||
* modify it under the terms of the GNU General Public License as *
|
||||
@ -59,6 +60,7 @@ DateFormat dateFormat = DATE_FORMAT_US;
|
||||
void
|
||||
printDate (char * buff, int day, int month, int year)
|
||||
{
|
||||
if (!buff) return;
|
||||
|
||||
/* Note that when printing year, we use %-4d in format string;
|
||||
* this causes a one, two or three-digit year to be left-adjusted
|
||||
@ -90,6 +92,7 @@ void
|
||||
printDateSecs (char * buff, time_t t)
|
||||
{
|
||||
struct tm *theTime;
|
||||
if (!buff) return;
|
||||
|
||||
theTime = localtime(&t);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user