From bb18641d0c8d530f3faebbcf6c84c16621f63ed9 Mon Sep 17 00:00:00 2001 From: Christian Stimming Date: Wed, 18 May 2011 18:52:32 +0000 Subject: [PATCH] Win32: Fix compiler warnings about potentially uninitialized functions. git-svn-id: svn+ssh://svn.gnucash.org/repo/gnucash/trunk@20657 57a11ea4-9604-0410-9ed3-97b8803252fd --- src/backend/xml/io-gncxml-v2.c | 2 +- src/engine/gncEntry.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/backend/xml/io-gncxml-v2.c b/src/backend/xml/io-gncxml-v2.c index 9d98e8e979..db7273a69e 100644 --- a/src/backend/xml/io-gncxml-v2.c +++ b/src/backend/xml/io-gncxml-v2.c @@ -1628,7 +1628,7 @@ gnc_is_xml_data_file_v2(const gchar *name, gboolean *with_encoding) if (is_gzipped_file(name)) { - gzFile *file; + gzFile *file = NULL; char first_chunk[256]; int num_read; diff --git a/src/engine/gncEntry.c b/src/engine/gncEntry.c index 9e1901fc9b..983e8a3bc6 100644 --- a/src/engine/gncEntry.c +++ b/src/engine/gncEntry.c @@ -625,7 +625,7 @@ void qofEntrySetInvDiscType (GncEntry *entry, const char *type_string) void qofEntrySetInvDiscHow (GncEntry *entry, const char *type) { - GncDiscountHow how; + GncDiscountHow how = GNC_DISC_PRETAX; if (!entry) return; gncEntryBeginEdit (entry);