summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjospaeth <spaethj@in.tum.de>2020-09-03 11:13:46 +0200
committerjospaeth <spaethj@in.tum.de>2020-09-03 11:13:46 +0200
commitc6fd8f93675ef986184c9a93183e3d7767a4b8ed (patch)
tree5fc3cccd5cc68793b1cfa025150584c70244cab9
parent649777acbf64d2c80c5af67408b2c0f7a959c377 (diff)
fix anchor string parsing
-rw-r--r--src/escrow/escrow_api.c1
-rw-r--r--src/escrow/gnunet-escrow.c2
2 files changed, 2 insertions, 1 deletions
diff --git a/src/escrow/escrow_api.c b/src/escrow/escrow_api.c
index 10faed90b..bf712d3de 100644
--- a/src/escrow/escrow_api.c
+++ b/src/escrow/escrow_api.c
@@ -455,6 +455,7 @@ GNUNET_ESCROW_anchor_string_to_data (const char *anchorString)
anchorStringCopy = GNUNET_strdup (anchorString);
anchor = NULL;
+ methodString = egoNameString = anchorDataString = NULL;
/* parse and decode method */
ptr = strtok (anchorStringCopy, delimiter);
diff --git a/src/escrow/gnunet-escrow.c b/src/escrow/gnunet-escrow.c
index 2130b19fc..705d09d11 100644
--- a/src/escrow/gnunet-escrow.c
+++ b/src/escrow/gnunet-escrow.c
@@ -345,7 +345,7 @@ start_process ()
case GNUNET_ESCROW_KEY_ANASTASIS:
fprintf (stdout, "%s\n", anastasis_string);
break;
- default:
+ default: // GNUNET_ESCROW_KEY_NONE
fprintf (stdout, "INVALID METHOD\n");
}
cleanup_task = GNUNET_SCHEDULER_add_now (&do_cleanup, NULL);