From 8f1702d627ad98dae8816ed389f1e2ad4fb3ad91 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Sun, 11 May 2003 16:14:38 +0000 Subject: [PATCH] * src/import-export/hbci/gnc-hbci-utils.c: you have to declare your variables before you g_assert() anything. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@8298 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ src/import-export/hbci/gnc-hbci-utils.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 2c3272f4fa..6be912d67c 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-05-11 Derek Atkins + + * src/import-export/hbci/gnc-hbci-utils.c: you have to declare + your variables before you g_assert() anything. + 2003-05-10 David Hampton * src/backend/file/gnc-commodity-xml-v2.c: diff --git a/src/import-export/hbci/gnc-hbci-utils.c b/src/import-export/hbci/gnc-hbci-utils.c index 61b0fb5c53..e0f27e655d 100644 --- a/src/import-export/hbci/gnc-hbci-utils.c +++ b/src/import-export/hbci/gnc-hbci-utils.c @@ -207,8 +207,8 @@ get_resultcode_error_cb (int value, void *user_data) static int get_resultcode_error (const list_int *list) { - g_assert (list); int tmp_result = 0, cause = 0; + g_assert (list); cause = (int) list_int_foreach (list, &get_resultcode_error_cb, &tmp_result); return MAX(tmp_result, cause); }