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

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17566 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Andreas Köhler 2008-09-19 16:09:23 +00:00
parent 9fb68915e1
commit f0cb946f0c

View File

@ -572,7 +572,7 @@ bal_accountinfo_cb(AB_IMEXPORTER_ACCOUNTINFO *element, gpointer user_data)
GncABImExContextImport *data = user_data; GncABImExContextImport *data = user_data;
Account *gnc_acc; Account *gnc_acc;
AB_ACCOUNT_STATUS *item, *best = NULL; 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_BALANCE *booked_bal, *noted_bal;
const AB_VALUE *booked_val = NULL, *noted_val = NULL; const AB_VALUE *booked_val = NULL, *noted_val = NULL;
gdouble booked_value, noted_value; gdouble booked_value, noted_value;