r16628 - gnucash/branches/gda-dev/src/backend/gda - Don't crash when loading null date

Derek Atkins warlord at MIT.EDU
Mon Dec 10 13:03:24 EST 2007


Phil Longstaff <plongstaff at cvs.gnucash.org> writes:

>      if( gda_value_is_null( val ) ) {
> -        (*setter)( pObject, NULL );
> +		date = g_date_new_dmy( 1, 1, 1970 );
> +        (*setter)( pObject, date );

Don't you need to free the date?

-derek
-- 
       Derek Atkins, SB '93 MIT EE, SM '95 MIT Media Laboratory
       Member, MIT Student Information Processing Board  (SIPB)
       URL: http://web.mit.edu/warlord/    PP-ASEL-IA     N1NWH
       warlord at MIT.EDU                        PGP key available


More information about the gnucash-devel mailing list