Fix compiler warnings.

Patch by Colin Law: Attached is a patch to fix compiler warnings in
split-register-model.c.  In fact for me they prevent compilation,
possibly because I have specified --enable-compile-warnings.  I have
inspected the code and it appears that the warnings are unfounded, the
code appears to be safe, though I can see why the warnings were
generated.

Signed-off-by: Christian Stimming <stimming@tuhh.de>

git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18361 57a11ea4-9604-0410-9ed3-97b8803252fd
This commit is contained in:
Christian Stimming 2009-10-03 11:37:52 +00:00
parent 8292c87e1a
commit 19e02f6dea

View File

@ -66,9 +66,10 @@ gnc_split_register_get_rbaln (VirtualLocation virt_loc, gpointer user_data, gboo
Split *split;
SRInfo *info = gnc_split_register_get_info (reg);
gnc_numeric value = gnc_numeric_zero(), balance = gnc_numeric_zero();
Account *account;
Account *account = NULL;
Transaction *trans;
GList *node, *children, *child;
GList *node, *child;
GList *children = NULL;
int i, row;
balance = gnc_numeric_zero();