From 19e02f6deadf84a77620be5c23f668a8e1083b76 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 3 Oct 2009 11:37:52 +0000 Subject: [PATCH] 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 git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@18361 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/register/ledger-core/split-register-model.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/register/ledger-core/split-register-model.c b/src/register/ledger-core/split-register-model.c index b22452a7cb..dcb5dd2711 100644 --- a/src/register/ledger-core/split-register-model.c +++ b/src/register/ledger-core/split-register-model.c @@ -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();