commit abf287e47b9b9263a0a25c863aee249dcd0a01fe
parent e48176962bb29a71f8eda94a6dd4b7e1c1e52c65
Author: bohdan-potuzhnyi <bohdan.potuzhnyi@gmail.com>
Date: Wed, 19 Feb 2025 14:24:01 +0100
correcting the token errors
Diffstat:
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_private-post-orders.c b/src/backend/taler-merchant-httpd_private-post-orders.c
@@ -3573,9 +3573,8 @@ parse_choices (struct OrderContext *oc)
size_t idx;
json_array_foreach ((json_t *) joutputs, idx, joutput)
{
- struct TALER_MERCHANT_ContractOutput output = {
- .details.token.count = 1
- };
+
+ struct TALER_MERCHANT_ContractOutput output = {};
if (GNUNET_OK !=
TALER_MERCHANT_parse_choice_output ((json_t *) joutput,
diff --git a/src/util/contract_parse.c b/src/util/contract_parse.c
@@ -241,6 +241,7 @@ TALER_MERCHANT_parse_choice_output (
break;
case TALER_MERCHANT_CONTRACT_OUTPUT_TYPE_TOKEN:
{
+ output->details.token.count = 1;
struct GNUNET_JSON_Specification spec[] = {
GNUNET_JSON_spec_string ("token_family_slug",
&output->details.token.token_family_slug),