commit aac8e01e9fcc3235bce766b663f7ffdc897d853a
parent c53be1b1571c7b662e6166f7b1497f1faf4a7b3d
Author: Christian Grothoff <grothoff@gnunet.org>
Date: Wed, 23 Oct 2024 00:04:25 +0200
context is optional (fixes test failure)
Diffstat:
1 file 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
@@ -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;