[Gnucash-changes] r13841 - gnucash/trunk/src/register/ledger-core - Fix uninitialized use in gnc_split_register_empty_current_trans_except_split

Chris Shoemaker chris at cvs.gnucash.org
Mon Apr 24 09:58:05 EDT 2006


Author: chris
Date: 2006-04-24 09:58:04 -0400 (Mon, 24 Apr 2006)
New Revision: 13841
Trac: http://svn.gnucash.org/trac/changeset/13841

Modified:
   gnucash/trunk/src/register/ledger-core/split-register.c
Log:
   Fix uninitialized use in gnc_split_register_empty_current_trans_except_split


Modified: gnucash/trunk/src/register/ledger-core/split-register.c
===================================================================
--- gnucash/trunk/src/register/ledger-core/split-register.c	2006-04-24 08:23:03 UTC (rev 13840)
+++ gnucash/trunk/src/register/ledger-core/split-register.c	2006-04-24 13:58:04 UTC (rev 13841)
@@ -1030,9 +1030,9 @@
   }
 
   /* This is now the pending transaction */
+  info = gnc_split_register_get_info (reg);
   g_assert(xaccTransLookup(&info->pending_trans_guid, 
                            gnc_get_current_book()) == NULL);
-  info = gnc_split_register_get_info (reg);
   info->pending_trans_guid = *xaccTransGetGUID(trans);
 
   gnc_resume_gui_refresh ();



More information about the gnucash-changes mailing list