commit 8a97e3709cec63d277387099983f181e632b6839
parent 80b826aca4431570da885debd78cb75de81512db
Author: Christian Grothoff <christian@grothoff.org>
Date: Tue, 21 Feb 2023 20:19:27 +0100
fix optional
Diffstat:
2 files changed, 4 insertions(+), 2 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-patch-templates-ID.c b/src/backend/taler-merchant-httpd_private-patch-templates-ID.c
@@ -115,7 +115,8 @@ TMH_private_patch_templates_ID (const struct TMH_RequestHandler *rh,
(const char **) &tp.template_description),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_uint32 ("pos_algorithm",
- &pos_algorithm)),
+ &pos_algorithm),
+ NULL),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_string ("pos_key",
(const char **) &tp.pos_key),
diff --git a/src/backend/taler-merchant-httpd_private-post-templates.c b/src/backend/taler-merchant-httpd_private-post-templates.c
@@ -75,7 +75,8 @@ TMH_private_post_templates (const struct TMH_RequestHandler *rh,
(const char **) &tp.template_description),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_uint32 ("pos_algorithm",
- &pos_algorithm)),
+ &pos_algorithm),
+ NULL),
GNUNET_JSON_spec_mark_optional (
GNUNET_JSON_spec_string ("pos_key",
(const char **) &tp.pos_key),