aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Grothoff <grothoff@gnunet.org>2024-10-23 00:04:25 +0200
committerChristian Grothoff <grothoff@gnunet.org>2024-10-23 00:04:25 +0200
commitaac8e01e9fcc3235bce766b663f7ffdc897d853a (patch)
treec0128ff53703082f7ec7d99d0d4f4231beef8fd7
parentc53be1b1571c7b662e6166f7b1497f1faf4a7b3d (diff)
context is optional (fixes test failure)
-rw-r--r--src/exchange/taler-exchange-httpd_kyc-info.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/exchange/taler-exchange-httpd_kyc-info.c b/src/exchange/taler-exchange-httpd_kyc-info.c
index aa8c57557..681d0321b 100644
--- a/src/exchange/taler-exchange-httpd_kyc-info.c
+++ b/src/exchange/taler-exchange-httpd_kyc-info.c
@@ -261,14 +261,16 @@ generate_reply (struct KycPoller *kyp,
{
const char *check_name;
const char *prog_name;
- const json_t *context;
+ const json_t *context = NULL;
struct GNUNET_JSON_Specification ispec[] = {
GNUNET_JSON_spec_string ("check_name",
&check_name),
GNUNET_JSON_spec_string ("prog_name",
&prog_name),
- GNUNET_JSON_spec_object_const ("context",
- &context),
+ GNUNET_JSON_spec_mark_optional (
+ GNUNET_JSON_spec_object_const ("context",
+ &context),
+ NULL),
GNUNET_JSON_spec_end ()
};
json_t *kri;