From e8feb39e8d0106f436138bc671b359be20f7aaf1 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Sat, 25 Oct 2008 19:48:40 +0000 Subject: [PATCH] Bug #557848: Fix uninitialized variable. gcc gives a correct warning about a possibly uninitialised variable. This stops compilation. Patch by joslwah@gmail.com. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@17651 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/sql/gnc-price-sql.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/backend/sql/gnc-price-sql.c b/src/backend/sql/gnc-price-sql.c index 112b52f3ed..1588a476d0 100644 --- a/src/backend/sql/gnc-price-sql.c +++ b/src/backend/sql/gnc-price-sql.c @@ -138,7 +138,7 @@ save_price( GncSqlBackend* be, QofInstance* inst ) GNCPrice* pPrice = GNC_PRICE(inst); gint op; gboolean is_infant; - gboolean is_ok; + gboolean is_ok = TRUE; g_return_val_if_fail( be != NULL, FALSE ); g_return_val_if_fail( inst != NULL, FALSE );