From 53824933a57d1aaa27725e5e39e4bece7ed1676d Mon Sep 17 00:00:00 2001 From: Derek Atkins Date: Thu, 1 Apr 2004 15:25:39 +0000 Subject: [PATCH] This isn't C++; variable declaration must be at the top of a block. * src/gnome/dialog-scheduledxaction.c: Move variable declaration to the top of the block. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@9876 57a11ea4-9604-0410-9ed3-97b8803252fd --- ChangeLog | 5 +++++ src/gnome/dialog-scheduledxaction.c | 3 ++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index 5dfaffb473..4e9a1ac8b1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2004-04-01 Derek Atkins + + * src/gnome/dialog-scheduledxaction.c: Move variable declaration + to the top of the block. + 2004-03-31 Derek Atkins * configure.in: move m4/Makefile to its own line diff --git a/src/gnome/dialog-scheduledxaction.c b/src/gnome/dialog-scheduledxaction.c index 400a846d43..cdd2eeb6db 100644 --- a/src/gnome/dialog-scheduledxaction.c +++ b/src/gnome/dialog-scheduledxaction.c @@ -1057,11 +1057,12 @@ gnc_sxed_save_sx( SchedXactionEditorDialog *sxed ) { FreqSpec *fs; GDate gdate; + GString *str; fs = xaccSchedXactionGetFreqSpec( sxed->sx ); gnc_frequency_save_state( sxed->gncfreq, fs, &gdate ); - GString *str = g_string_new( "" ); + str = g_string_new( "" ); xaccFreqSpecGetFreqStr( fs, str ); DEBUG( "fs: %s", str->str );