diff options
author | Christian Grothoff <christian@grothoff.org> | 2011-12-23 15:35:39 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2011-12-23 15:35:39 +0000 |
commit | b0c3940ed93bf7d15f15ce6f2fd690f55dcc503c (patch) | |
tree | 7a997433e43d72269b6605ae309e658e535dc9a2 | |
parent | 4ada774476c241b7dd5be9435edf4154ce8a6e34 (diff) | |
download | gnunet-gtk-b0c3940ed93bf7d15f15ce6f2fd690f55dcc503c.tar.gz gnunet-gtk-b0c3940ed93bf7d15f15ce6f2fd690f55dcc503c.zip |
-fix use of uninitalized mime_keyword
-rw-r--r-- | src/fs/gnunet-fs-gtk.c | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/fs/gnunet-fs-gtk.c b/src/fs/gnunet-fs-gtk.c index 27ca9eee..b4f6e592 100644 --- a/src/fs/gnunet-fs-gtk.c +++ b/src/fs/gnunet-fs-gtk.c | |||
@@ -485,11 +485,9 @@ main_window_search_button_clicked_cb (GtkButton *button, gpointer user_data) | |||
485 | mime_combo = GTK_COMBO_BOX (GNUNET_FS_GTK_get_main_window_object | 485 | mime_combo = GTK_COMBO_BOX (GNUNET_FS_GTK_get_main_window_object |
486 | ("main_window_search_mime_combobox")); | 486 | ("main_window_search_mime_combobox")); |
487 | mime_model = gtk_combo_box_get_model (mime_combo); | 487 | mime_model = gtk_combo_box_get_model (mime_combo); |
488 | if (mime_model && gtk_combo_box_get_active_iter (mime_combo, &iter)) | 488 | mime_keyword = NULL; |
489 | { | 489 | if (mime_model && gtk_combo_box_get_active_iter (mime_combo, &iter)) |
490 | mime_keyword = NULL; | 490 | gtk_tree_model_get (mime_model, &iter, 0, &mime_keyword, -1); |
491 | gtk_tree_model_get (mime_model, &iter, 0, &mime_keyword, -1); | ||
492 | } | ||
493 | if (mime_keyword == NULL) | 491 | if (mime_keyword == NULL) |
494 | mime_keyword = g_strdup (""); | 492 | mime_keyword = g_strdup (""); |
495 | 493 | ||