From efefa08644cfd858a384e14d7fe80302dfda1d00 Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Thu, 15 Apr 2004 17:35:02 +0000 Subject: [PATCH] Don't use C++/C99 variable declarations. * src/import-export/hbci/dialog-hbcitrans.c: Don't use C++/C99 declarations. Declare variables at the top of the function. Fixes #140070 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9893 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 6 ++++++ src/import-export/hbci/dialog-hbcitrans.c | 4 ++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 837868fc6e..1de83e9da2 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2004-05-15 Derek Atkins + + * src/import-export/hbci/dialog-hbcitrans.c: Don't use C++/C99 + declarations. Declare variables at the top of the function. + Fixes #140070 + 2004-04-12 Chris Lyttle * src/scm/main.scm: Update for 1.8.9 release diff --git a/src/import-export/hbci/dialog-hbcitrans.c b/src/import-export/hbci/dialog-hbcitrans.c index 3a540d38d7..0664d3ca56 100644 --- a/src/import-export/hbci/dialog-hbcitrans.c +++ b/src/import-export/hbci/dialog-hbcitrans.c @@ -686,11 +686,11 @@ on_template_list_select_child (GtkList *list, gpointer user_data) { HBCITransDialog *td = user_data; + GNCTransTempl *templ = gtk_object_get_user_data (GTK_OBJECT(widget)) ; + g_assert(td); td->selected_template = widget; - - GNCTransTempl *templ = gtk_object_get_user_data (GTK_OBJECT(widget)) ; fill_entry(gnc_trans_templ_get_recp_name(templ), td->recp_name_entry); fill_entry(gnc_trans_templ_get_recp_account(templ), td->recp_account_entry);