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

Phil Longstaff plongstaff at rogers.com
Sat Dec 15 21:46:36 EST 2007


   Derek Atkins wrote:

Phil Longstaff [1]<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?

   Yes, I do.  Thanks.
   Phil

References

   1. mailto:plongstaff at cvs.gnucash.org


More information about the gnucash-devel mailing list