diff options
author | Christian Grothoff <christian@grothoff.org> | 2007-01-20 00:07:14 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2007-01-20 00:07:14 +0000 |
commit | 917894a216bb02b8f8233bd3f6b91b328520a68a (patch) | |
tree | 95030af8bf1249e3a48e31cbec1b9eac776af9ea | |
parent | 49222a591cc4d2d29597c9f264d10caad11a91a9 (diff) | |
download | gnunet-gtk-917894a216bb02b8f8233bd3f6b91b328520a68a.tar.gz gnunet-gtk-917894a216bb02b8f8233bd3f6b91b328520a68a.zip |
fixing uninitalized uses
-rw-r--r-- | src/plugins/fs/namespace.c | 6 | ||||
-rw-r--r-- | src/plugins/stats/statistics.c | 6 |
2 files changed, 7 insertions, 5 deletions
diff --git a/src/plugins/fs/namespace.c b/src/plugins/fs/namespace.c index 47f55a0b..d5144564 100644 --- a/src/plugins/fs/namespace.c +++ b/src/plugins/fs/namespace.c | |||
@@ -1216,6 +1216,8 @@ void on_namespaceRatingSpinButton_changed_fs(GtkWidget * dummy, | |||
1216 | = glade_xml_get_widget(getMainXML(), | 1216 | = glade_xml_get_widget(getMainXML(), |
1217 | "searchNamespaceComboBoxEntry"); | 1217 | "searchNamespaceComboBoxEntry"); |
1218 | model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe)); | 1218 | model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe)); |
1219 | description = NULL; | ||
1220 | encStr = NULL; | ||
1219 | if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe), | 1221 | if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe), |
1220 | &iter)) { | 1222 | &iter)) { |
1221 | gtk_tree_model_get(model, | 1223 | gtk_tree_model_get(model, |
@@ -1292,10 +1294,10 @@ void on_searchNamespaceComboBoxEntry_changed_fs(GtkWidget * dummy, | |||
1292 | = glade_xml_get_widget(getMainXML(), | 1294 | = glade_xml_get_widget(getMainXML(), |
1293 | "searchNamespaceComboBoxEntry"); | 1295 | "searchNamespaceComboBoxEntry"); |
1294 | model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe)); | 1296 | model = gtk_combo_box_get_model(GTK_COMBO_BOX(ncbe)); |
1297 | descStr = NULL; | ||
1298 | encStr = NULL; | ||
1295 | if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe), | 1299 | if (TRUE == gtk_combo_box_get_active_iter(GTK_COMBO_BOX(ncbe), |
1296 | &iter)) { | 1300 | &iter)) { |
1297 | encStr = NULL; | ||
1298 | descStr = NULL; | ||
1299 | gtk_tree_model_get(model, | 1301 | gtk_tree_model_get(model, |
1300 | &iter, | 1302 | &iter, |
1301 | NS_SEARCH_DESCRIPTION, &descStr, | 1303 | NS_SEARCH_DESCRIPTION, &descStr, |
diff --git a/src/plugins/stats/statistics.c b/src/plugins/stats/statistics.c index d9c17495..0af8cf90 100644 --- a/src/plugins/stats/statistics.c +++ b/src/plugins/stats/statistics.c | |||
@@ -327,13 +327,13 @@ static gint load_graph_expose(GtkWidget *widget, | |||
327 | return FALSE; | 327 | return FALSE; |
328 | } | 328 | } |
329 | 329 | ||
330 | static void load_graph_stop (LoadGraph *g) { | 330 | static void load_graph_stop (LoadGraph *g) { |
331 | if (!g) | ||
332 | return; | ||
331 | if (g->timer_index != -1) { | 333 | if (g->timer_index != -1) { |
332 | gtk_timeout_remove(g->timer_index); | 334 | gtk_timeout_remove(g->timer_index); |
333 | g->timer_index = -1; | 335 | g->timer_index = -1; |
334 | } | 336 | } |
335 | if (!g) | ||
336 | return; | ||
337 | g->draw = FALSE; | 337 | g->draw = FALSE; |
338 | } | 338 | } |
339 | 339 | ||