gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] r4313 - in gnunet-gtk/src/plugins: fs stats


From: grothoff
Subject: [GNUnet-SVN] r4313 - in gnunet-gtk/src/plugins: fs stats
Date: Fri, 19 Jan 2007 16:07:16 -0800 (PST)

Author: grothoff
Date: 2007-01-19 16:07:14 -0800 (Fri, 19 Jan 2007)
New Revision: 4313

Modified:
   gnunet-gtk/src/plugins/fs/namespace.c
   gnunet-gtk/src/plugins/stats/statistics.c
Log:
fixing uninitalized uses

Modified: gnunet-gtk/src/plugins/fs/namespace.c
===================================================================
--- gnunet-gtk/src/plugins/fs/namespace.c       2007-01-19 23:57:36 UTC (rev 
4312)
+++ gnunet-gtk/src/plugins/fs/namespace.c       2007-01-20 00:07:14 UTC (rev 
4313)
@@ -1216,6 +1216,8 @@
     = glade_xml_get_widget(getMainXML(),
                           "searchNamespaceComboBoxEntry");
   model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe));
+  description = NULL;
+  encStr = NULL;
   if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe),
                                            &iter)) {
     gtk_tree_model_get(model,
@@ -1292,10 +1294,10 @@
     = glade_xml_get_widget(getMainXML(),
                           "searchNamespaceComboBoxEntry");
   model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe));
+  descStr = NULL;
+  encStr = NULL;
   if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe),
                                            &iter)) {
-    encStr = NULL;
-    descStr = NULL;
     gtk_tree_model_get(model,
                       &iter,
                       NS_SEARCH_DESCRIPTION, &descStr,

Modified: gnunet-gtk/src/plugins/stats/statistics.c
===================================================================
--- gnunet-gtk/src/plugins/stats/statistics.c   2007-01-19 23:57:36 UTC (rev 
4312)
+++ gnunet-gtk/src/plugins/stats/statistics.c   2007-01-20 00:07:14 UTC (rev 
4313)
@@ -327,13 +327,13 @@
   return FALSE;
 }
 
-static void load_graph_stop (LoadGraph *g) {
+static void load_graph_stop (LoadGraph *g) {  
+  if (!g)
+    return;
   if (g->timer_index != -1) {
     gtk_timeout_remove(g->timer_index);
     g->timer_index = -1;
   }
-  if (!g)
-    return;
   g->draw = FALSE;
 }
 





reply via email to

[Prev in Thread] Current Thread [Next in Thread]