aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/fs/namespace_search.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/fs/namespace_search.c')
-rw-r--r--src/plugins/fs/namespace_search.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/plugins/fs/namespace_search.c b/src/plugins/fs/namespace_search.c
index afa37136..d81b27c5 100644
--- a/src/plugins/fs/namespace_search.c
+++ b/src/plugins/fs/namespace_search.c
@@ -128,8 +128,7 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy,
128 char *encStr; 128 char *encStr;
129 char *descStr; 129 char *descStr;
130 GNUNET_HashCode ns; 130 GNUNET_HashCode ns;
131 GNUNET_HashCode root; 131 char *root;
132 GNUNET_EncName enc;
133 132
134 GNUNET_GTK_DEBUG_BEGIN (); 133 GNUNET_GTK_DEBUG_BEGIN ();
135 spin = 134 spin =
@@ -161,13 +160,13 @@ on_searchNamespaceComboBoxEntry_changed_fs (GtkWidget * dummy,
161 keyword 160 keyword
162 = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (), 161 = glade_xml_get_widget (GNUNET_GTK_get_main_glade_XML (),
163 "fssearchKeywordComboBoxEntry"); 162 "fssearchKeywordComboBoxEntry");
164 if (GNUNET_OK == 163 root = GNUNET_NS_namespace_get_root (ectx, cfg, &ns);
165 GNUNET_NS_namespace_get_root (ectx, cfg, &ns, &root)) 164 if (root != NULL)
166 { 165 {
167 GNUNET_hash_to_enc (&root, &enc);
168 gtk_entry_set_text (GTK_ENTRY 166 gtk_entry_set_text (GTK_ENTRY
169 (gtk_bin_get_child (GTK_BIN (keyword))), 167 (gtk_bin_get_child (GTK_BIN (keyword))),
170 (const gchar *) &enc); 168 root);
169 GNUNET_free (root);
171 } 170 }
172 else 171 else
173 { 172 {