r23707 - gnucash/trunk/src/register/register-gnome - Ensure struct tm is zeroed before passing it to gnc_tm_get_today_start
John Ralls
jralls at code.gnucash.org
Sat Jan 18 16:50:31 EST 2014
Author: jralls
Date: 2014-01-18 16:50:31 -0500 (Sat, 18 Jan 2014)
New Revision: 23707
Trac: http://svn.gnucash.org/trac/changeset/23707
Modified:
gnucash/trunk/src/register/register-gnome/datecell-gnome.c
Log:
Ensure struct tm is zeroed before passing it to gnc_tm_get_today_start
Modified: gnucash/trunk/src/register/register-gnome/datecell-gnome.c
===================================================================
--- gnucash/trunk/src/register/register-gnome/datecell-gnome.c 2014-01-18 21:50:21 UTC (rev 23706)
+++ gnucash/trunk/src/register/register-gnome/datecell-gnome.c 2014-01-18 21:50:31 UTC (rev 23707)
@@ -104,6 +104,8 @@
{
// Couldn't parse date, use today
struct tm tm_today;
+
+ memset (&tm_today, 0, sizeof (struct tm));
gnc_tm_get_today_start (&tm_today);
day = tm_today.tm_mday;
month = tm_today.tm_mon + 1;
More information about the gnucash-changes
mailing list