gnucash master: Fix an uninitialized variable error.

Mike Alexander mta at code.gnucash.org
Wed Feb 19 01:39:40 EST 2014


Updated	 via  https://github.com/Gnucash/gnucash/commit/6390beb5 (commit)
	from  https://github.com/Gnucash/gnucash/commit/80cd6d72 (commit)



commit 6390beb59f19a845c31fec993a1aca9021b8462f
Author: Mike Alexander <mta at umich.edu>
Date:   Wed Feb 19 01:35:17 2014 -0500

    Fix an uninitialized variable error.

diff --git a/src/engine/gncOwner.c b/src/engine/gncOwner.c
index 61968d6..8a1d0bf 100644
--- a/src/engine/gncOwner.c
+++ b/src/engine/gncOwner.c
@@ -1030,7 +1030,7 @@ gncOwnerApplyPayment (const GncOwner *owner, Transaction *txn, GList *lots,
                       gnc_numeric amount, gnc_numeric exch, Timespec date,
                       const char *memo, const char *num, gboolean auto_pay)
 {
-    GNCLot *payment_lot;
+    GNCLot *payment_lot = NULL;
     GList *selected_lots = NULL;
 
     /* Verify our arguments */



Summary of changes:
 src/engine/gncOwner.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)



More information about the gnucash-changes mailing list