diff options
Diffstat (limited to 'src/namestore/gnunet-namestore-gtk.c')
-rw-r--r-- | src/namestore/gnunet-namestore-gtk.c | 15 |
1 files changed, 13 insertions, 2 deletions
diff --git a/src/namestore/gnunet-namestore-gtk.c b/src/namestore/gnunet-namestore-gtk.c index 316fe715..eeac58ee 100644 --- a/src/namestore/gnunet-namestore-gtk.c +++ b/src/namestore/gnunet-namestore-gtk.c | |||
@@ -1655,7 +1655,16 @@ launch_edit_dialog (gint n_type, | |||
1655 | unsigned int off) | 1655 | unsigned int off) |
1656 | { | 1656 | { |
1657 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc; | 1657 | struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc; |
1658 | const char *typename; | ||
1658 | 1659 | ||
1660 | typename = GNUNET_GNSRECORD_number_to_typename (n_type); | ||
1661 | if (NULL == typename) | ||
1662 | { | ||
1663 | GNUNET_log (GNUNET_ERROR_TYPE_ERROR, | ||
1664 | "Record type `%u' not supported by this installation\n", | ||
1665 | (unsigned int) n_type); | ||
1666 | return; | ||
1667 | } | ||
1659 | if (NULL == current_pseudonym) | 1668 | if (NULL == current_pseudonym) |
1660 | { | 1669 | { |
1661 | GNUNET_break (0); | 1670 | GNUNET_break (0); |
@@ -1694,7 +1703,7 @@ launch_edit_dialog (gint n_type, | |||
1694 | edc->check_validity = &check_validity; | 1703 | edc->check_validity = &check_validity; |
1695 | GNUNET_asprintf (&edc->liblow, | 1704 | GNUNET_asprintf (&edc->liblow, |
1696 | "libgnunet_plugin_gtk_namestore_%s", | 1705 | "libgnunet_plugin_gtk_namestore_%s", |
1697 | GNUNET_GNSRECORD_number_to_typename (n_type)); | 1706 | typename); |
1698 | GNUNET_STRINGS_utf8_tolower (edc->liblow, edc->liblow); | 1707 | GNUNET_STRINGS_utf8_tolower (edc->liblow, edc->liblow); |
1699 | edc->plugin = GNUNET_PLUGIN_load (edc->liblow, edc); | 1708 | edc->plugin = GNUNET_PLUGIN_load (edc->liblow, edc); |
1700 | if (NULL == edc->plugin) | 1709 | if (NULL == edc->plugin) |
@@ -3304,7 +3313,9 @@ run (void *cls) | |||
3304 | int | 3313 | int |
3305 | main (int argc, char *const *argv) | 3314 | main (int argc, char *const *argv) |
3306 | { | 3315 | { |
3307 | struct GNUNET_GETOPT_CommandLineOption options[] = {GNUNET_GETOPT_OPTION_END}; | 3316 | struct GNUNET_GETOPT_CommandLineOption options[] = { |
3317 | GNUNET_GETOPT_OPTION_END | ||
3318 | }; | ||
3308 | int ret; | 3319 | int ret; |
3309 | 3320 | ||
3310 | if (GNUNET_OK == | 3321 | if (GNUNET_OK == |