mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Bug #566352: Remove printf("%s", NULL) in xaccTransSetDateInternal() when val=={-1,0}.
BP git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17836 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
5e77b501b4
commit
526ee85f93
@ -1256,9 +1256,12 @@ xaccTransSetDateInternal(Transaction *trans, Timespec *dadate, Timespec val)
|
||||
{
|
||||
xaccTransBeginEdit(trans);
|
||||
|
||||
PINFO ("addr=%p set date to %" G_GUINT64_FORMAT ".%09ld %s",
|
||||
trans, val.tv_sec, val.tv_nsec,
|
||||
ctime (({time_t secs = (time_t) val.tv_sec; &secs;})));
|
||||
{
|
||||
time_t secs = (time_t) val.tv_sec;
|
||||
gchar *tstr = ctime(&secs);
|
||||
PINFO ("addr=%p set date to %" G_GUINT64_FORMAT ".%09ld %s",
|
||||
trans, val.tv_sec, val.tv_nsec, tstr ? tstr : "(null)");
|
||||
}
|
||||
|
||||
*dadate = val;
|
||||
qof_instance_set_dirty(QOF_INSTANCE(trans));
|
||||
|
Loading…
Reference in New Issue
Block a user