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);