summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2023-02-21 20:19:27 +0100
committerChristian Grothoff <christian@grothoff.org>2023-02-21 20:19:27 +0100
commit8a97e3709cec63d277387099983f181e632b6839 (patch)
treea7423ee8aa7b9831dc8763684a1f1369ee9512d8 /src
parent80b826aca4431570da885debd78cb75de81512db (diff)
downloadmerchant-8a97e3709cec63d277387099983f181e632b6839.tar.gz
merchant-8a97e3709cec63d277387099983f181e632b6839.tar.bz2
merchant-8a97e3709cec63d277387099983f181e632b6839.zip
fix optional
Diffstat (limited to 'src')
-rw-r--r--src/backend/taler-merchant-httpd_private-patch-templates-ID.c3
-rw-r--r--src/backend/taler-merchant-httpd_private-post-templates.c3
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
index 50bd8928..b5938368 100644
--- 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
index 96bc0a7a..276e225f 100644
--- 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),