r23124 - gnucash/trunk/src/gnome-utils - Fix some uninitialized variable warnings

John Ralls jralls at code.gnucash.org
Sat Aug 3 17:47:35 EDT 2013


Author: jralls
Date: 2013-08-03 17:47:35 -0400 (Sat, 03 Aug 2013)
New Revision: 23124
Trac: http://svn.gnucash.org/trac/changeset/23124

Modified:
   gnucash/trunk/src/gnome-utils/gnc-combott.c
   gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c
Log:
Fix some uninitialized variable warnings

Modified: gnucash/trunk/src/gnome-utils/gnc-combott.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-combott.c	2013-08-03 14:46:33 UTC (rev 23123)
+++ gnucash/trunk/src/gnome-utils/gnc-combott.c	2013-08-03 21:47:35 UTC (rev 23124)
@@ -571,7 +571,7 @@
 menuitem_response_cb (GtkMenuItem *item, gpointer *user_data )
 {
     const gchar *label_text;
-    GtkTreeIter iter, iter_now;
+    GtkTreeIter iter, iter_now = {0, NULL, NULL, NULL};
     gboolean valid;
     gint active = 1;
     gint active_now = 1;

Modified: gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c
===================================================================
--- gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c	2013-08-03 14:46:33 UTC (rev 23123)
+++ gnucash/trunk/src/gnome-utils/gnc-tree-view-split-reg.c	2013-08-03 21:47:35 UTC (rev 23124)
@@ -3216,7 +3216,7 @@
 gtv_sr_help (GncTreeViewSplitReg *view, GtkCellRenderer *cr, ViewCol viewcol, RowDepth depth)
 {
     GncTreeModelSplitReg *model;
-    gchar *help;
+    gchar *help = NULL;
     const gchar *current_string;
 
     ENTER("Help Viewcol is %d and depth is %d", viewcol, depth);



More information about the gnucash-changes mailing list