[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] [gnunet-gtk] branch master updated: warn if record type not
From: |
gnunet |
Subject: |
[GNUnet-SVN] [gnunet-gtk] branch master updated: warn if record type not supported |
Date: |
Sun, 18 Aug 2019 13:53:54 +0200 |
This is an automated email from the git hooks/post-receive script.
grothoff pushed a commit to branch master
in repository gnunet-gtk.
The following commit(s) were added to refs/heads/master by this push:
new cebdba42 warn if record type not supported
cebdba42 is described below
commit cebdba420e3f8b3a37abc0ec24841e74cf56d203
Author: Christian Grothoff <address@hidden>
AuthorDate: Sun Aug 18 13:52:19 2019 +0200
warn if record type not supported
---
src/namestore/gnunet-namestore-gtk.c | 15 +++++++++++++--
1 file 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,
unsigned int off)
{
struct GNUNET_GTK_NAMESTORE_PluginEnvironment *edc;
+ const char *typename;
+ typename = GNUNET_GNSRECORD_number_to_typename (n_type);
+ if (NULL == typename)
+ {
+ GNUNET_log (GNUNET_ERROR_TYPE_ERROR,
+ "Record type `%u' not supported by this installation\n",
+ (unsigned int) n_type);
+ return;
+ }
if (NULL == current_pseudonym)
{
GNUNET_break (0);
@@ -1694,7 +1703,7 @@ launch_edit_dialog (gint n_type,
edc->check_validity = &check_validity;
GNUNET_asprintf (&edc->liblow,
"libgnunet_plugin_gtk_namestore_%s",
- GNUNET_GNSRECORD_number_to_typename (n_type));
+ typename);
GNUNET_STRINGS_utf8_tolower (edc->liblow, edc->liblow);
edc->plugin = GNUNET_PLUGIN_load (edc->liblow, edc);
if (NULL == edc->plugin)
@@ -3304,7 +3313,9 @@ run (void *cls)
int
main (int argc, char *const *argv)
{
- struct GNUNET_GETOPT_CommandLineOption options[] =
{GNUNET_GETOPT_OPTION_END};
+ struct GNUNET_GETOPT_CommandLineOption options[] = {
+ GNUNET_GETOPT_OPTION_END
+ };
int ret;
if (GNUNET_OK ==
--
To stop receiving notification emails like this one, please contact
address@hidden.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] [gnunet-gtk] branch master updated: warn if record type not supported,
gnunet <=