diff options
author | Christian Grothoff <christian@grothoff.org> | 2023-02-21 20:19:27 +0100 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2023-02-21 20:19:27 +0100 |
commit | 8a97e3709cec63d277387099983f181e632b6839 (patch) | |
tree | a7423ee8aa7b9831dc8763684a1f1369ee9512d8 | |
parent | 80b826aca4431570da885debd78cb75de81512db (diff) |
fix optional
m--------- | contrib/wallet-core | 0 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_private-patch-templates-ID.c | 3 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_private-post-templates.c | 3 |
3 files changed, 4 insertions, 2 deletions
diff --git a/contrib/wallet-core b/contrib/wallet-core -Subproject abc01ba21f670960df8a79047d536f16c263183 +Subproject 13119702d90733174fc69a75de46bda6401d083 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), |