make sure that uninitialized value is not accidentally used.

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10251 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Linas Vepstas 2004-08-27 22:51:05 +00:00
parent ab685928b4
commit b155f5d09c

View File

@ -2130,7 +2130,7 @@ gnc_option_db_lookup_date_option(GNCOptionDB *odb,
Timespec *default_value) Timespec *default_value)
{ {
GNCOption *option; GNCOption *option;
Timespec temp; Timespec temp = {0,0};
char *symbol; char *symbol;
SCM getter; SCM getter;
SCM value; SCM value;
@ -2138,7 +2138,9 @@ gnc_option_db_lookup_date_option(GNCOptionDB *odb,
initialize_getters(); initialize_getters();
if (set_ab_value == NULL) if (set_ab_value == NULL)
{
set_ab_value = &temp; set_ab_value = &temp;
}
if(set_rel_value != NULL) if(set_rel_value != NULL)
{ {