AUDIT: r17566 - gnucash/trunk/src/import-export/aqbanking - Add a variable initialization to bal_accountinfo_cb().

Andreas Köhler andi5 at cvs.gnucash.org
Fri Sep 19 12:09:23 EDT 2008


Author: andi5
Date: 2008-09-19 12:09:23 -0400 (Fri, 19 Sep 2008)
New Revision: 17566
Trac: http://svn.gnucash.org/trac/changeset/17566

Modified:
   gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
Log:
Add a variable initialization to bal_accountinfo_cb().

That initialization is not strictly necessary, because best_time is used only if
best is non-NULL and but both variables are set in the same block.
BP

Modified: gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c
===================================================================
--- gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2008-09-19 16:09:12 UTC (rev 17565)
+++ gnucash/trunk/src/import-export/aqbanking/gnc-ab-utils.c	2008-09-19 16:09:23 UTC (rev 17566)
@@ -572,7 +572,7 @@
     GncABImExContextImport *data = user_data;
     Account *gnc_acc;
     AB_ACCOUNT_STATUS *item, *best = NULL;
-    const GWEN_TIME *best_time;
+    const GWEN_TIME *best_time = NULL;
     const AB_BALANCE *booked_bal, *noted_bal;
     const AB_VALUE *booked_val = NULL, *noted_val = NULL;
     gdouble booked_value, noted_value;



More information about the gnucash-changes mailing list