r21784 - gnucash/trunk/src/report/report-gnome - Fix crash due to non-initialized variable. (Why didn't gcc complain here...)

Christian Stimming cstim at code.gnucash.org
Wed Dec 28 16:11:53 EST 2011


Author: cstim
Date: 2011-12-28 16:11:53 -0500 (Wed, 28 Dec 2011)
New Revision: 21784
Trac: http://svn.gnucash.org/trac/changeset/21784

Modified:
   gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
Log:
Fix crash due to non-initialized variable. (Why didn't gcc complain here...)

Modified: gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c
===================================================================
--- gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2011-12-28 21:11:42 UTC (rev 21783)
+++ gnucash/trunk/src/report/report-gnome/gnc-plugin-page-report.c	2011-12-28 21:11:53 UTC (rev 21784)
@@ -1740,8 +1740,8 @@
     GncPluginPageReportPrivate *priv = GNC_PLUGIN_PAGE_REPORT_GET_PRIVATE(report);
     gchar *job_name = report_create_jobname(priv);
     GncInvoice *invoice;
-    GncOwner *owner;
-    KvpFrame *kvp;
+    GncOwner *owner = NULL;
+    KvpFrame *kvp = NULL;
 
     // Do we have an invoice report?
     invoice = lookup_invoice(priv);



More information about the gnucash-changes mailing list