Merge branch 'maint'

This commit is contained in:
John Ralls 2016-07-03 09:05:01 -07:00
commit 5db6419cb6

View File

@ -2351,6 +2351,7 @@ GDate
xaccTransGetDatePostedGDate (const Transaction *trans) xaccTransGetDatePostedGDate (const Transaction *trans)
{ {
GDate result; GDate result;
g_date_clear (&result, 1);
if (trans) if (trans)
{ {
/* Can we look up this value in the kvp slot? If yes, use it /* Can we look up this value in the kvp slot? If yes, use it
@ -2363,10 +2364,6 @@ xaccTransGetDatePostedGDate (const Transaction *trans)
if (! g_date_valid (&result)) if (! g_date_valid (&result))
result = timespec_to_gdate(xaccTransRetDatePostedTS(trans)); result = timespec_to_gdate(xaccTransRetDatePostedTS(trans));
} }
else
{
g_date_clear(&result, 1);
}
return result; return result;
} }