mirror of
https://github.com/Gnucash/gnucash.git
synced 2025-02-25 18:55:30 -06:00
Fix forgotten NULL check.
2005-04-21 Christian Stimming <stimming@tuhh.de> * src/import-export/hbci/gnc-hbci-getbalance.c: Fix forgotten NULL check as reported by Martin Preuss <aquamaniac@gmx.de>. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@10975 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
parent
d0dc5e78bb
commit
89b2a32bf6
@ -1,3 +1,8 @@
|
||||
2005-04-21 Christian Stimming <stimming@tuhh.de>
|
||||
|
||||
* src/import-export/hbci/gnc-hbci-getbalance.c: Fix forgotten NULL
|
||||
check as reported by Martin Preuss <aquamaniac@gmx.de>.
|
||||
|
||||
2005-04-14 David Hampton <hampton@employees.org>
|
||||
|
||||
* src/engine/iso-4217-currencies.scm:
|
||||
|
@ -194,7 +194,7 @@ gnc_hbci_getbalance_finish (GtkWidget *parent,
|
||||
const AB_ACCOUNT_STATUS *response;
|
||||
const AB_BALANCE *noted_grp, *booked_grp;
|
||||
const AB_VALUE *booked_val, *noted_val;
|
||||
time_t booked_tt;
|
||||
time_t booked_tt=0;
|
||||
gboolean dialogres;
|
||||
double booked_value, noted_value;
|
||||
gnc_numeric value;
|
||||
@ -209,8 +209,12 @@ gnc_hbci_getbalance_finish (GtkWidget *parent,
|
||||
booked_grp = AB_AccountStatus_GetBookedBalance(response);
|
||||
|
||||
if (booked_grp) {
|
||||
const GWEN_TIME *ti;
|
||||
|
||||
ti=AB_Balance_GetTime(booked_grp);
|
||||
if (ti)
|
||||
booked_tt = GWEN_Time_toTime_t (ti);
|
||||
booked_val = AB_Balance_GetValue(booked_grp);
|
||||
booked_tt = GWEN_Time_toTime_t (AB_Balance_GetTime(booked_grp));
|
||||
if (booked_val)
|
||||
booked_value = AB_Value_GetValue (booked_val);
|
||||
else {
|
||||
|
Loading…
Reference in New Issue
Block a user