aboutsummaryrefslogtreecommitdiff
path: root/src/namestore/gnunet-namestore-gtk.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r--src/namestore/gnunet-namestore-gtk.c13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c
index 9f21abbd..337cc043 100644
--- a/src/namestore/gnunet-namestore-gtk.c
+++ b/src/namestore/gnunet-namestore-gtk.c
@@ -973,8 +973,10 @@ edit_dialog_continuation (struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc,
973 free_edit_dialog_context (edc); 973 free_edit_dialog_context (edc);
974 return; 974 return;
975 } 975 }
976 if (GNUNET_OK != GNUNET_GNSRECORD_string_to_value (edc->record_type, edc->n_value, 976 if (GNUNET_OK !=
977 &data, &data_size)) 977 GNUNET_GNSRECORD_string_to_value (edc->record_type,
978 edc->n_value,
979 &data, &data_size))
978 { 980 {
979 GNUNET_break (0); 981 GNUNET_break (0);
980 free_edit_dialog_context (edc); 982 free_edit_dialog_context (edc);
@@ -1600,7 +1602,6 @@ launch_edit_dialog (gint n_type,
1600 edc->off = off; 1602 edc->off = off;
1601 edc->name = GNUNET_strdup (name); 1603 edc->name = GNUNET_strdup (name);
1602 edc->new_zone_option = g_strdup (current_zone_option); 1604 edc->new_zone_option = g_strdup (current_zone_option);
1603 edc->record_type = n_type;
1604 edc->zone_liststore = zone_liststore; 1605 edc->zone_liststore = zone_liststore;
1605 edc->check_validity = &check_validity; 1606 edc->check_validity = &check_validity;
1606 GNUNET_asprintf (&edc->liblow, 1607 GNUNET_asprintf (&edc->liblow,
@@ -1608,7 +1609,11 @@ launch_edit_dialog (gint n_type,
1608 GNUNET_GNSRECORD_number_to_typename (n_type)); 1609 GNUNET_GNSRECORD_number_to_typename (n_type));
1609 GNUNET_STRINGS_utf8_tolower (edc->liblow, 1610 GNUNET_STRINGS_utf8_tolower (edc->liblow,
1610 edc->liblow); 1611 edc->liblow);
1611 edc->plugin = GNUNET_PLUGIN_load (edc->liblow, edc); 1612 edc->plugin = GNUNET_PLUGIN_load (edc->liblow, edc);
1613 if (0 != edc->plugin->record_type)
1614 edc->record_type = edc->plugin->record_type;
1615 else
1616 edc->record_type = n_type;
1612 if (NULL == edc->plugin) 1617 if (NULL == edc->plugin)
1613 { 1618 {
1614 GNUNET_log (GNUNET_ERROR_TYPE_ERROR, 1619 GNUNET_log (GNUNET_ERROR_TYPE_ERROR,