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); }