diff options
author | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:50 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2022-04-05 17:15:50 +0200 |
commit | f3a4b00907410444055f47d4ff2074b44f981ad3 (patch) | |
tree | cb8f191a285152649e0b780aad8154f5b819f924 /src/lib/exchange_api_purse_create_with_deposit.c | |
parent | 71916414069d18ec5b7d5901d52d62a2aaa1403d (diff) | |
download | exchange-f3a4b00907410444055f47d4ff2074b44f981ad3.tar.xz |
adapt to latest GNUnet API: GNUNET_JSON_spec_mark_optional() changed
Diffstat (limited to 'src/lib/exchange_api_purse_create_with_deposit.c')
-rw-r--r-- | src/lib/exchange_api_purse_create_with_deposit.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/lib/exchange_api_purse_create_with_deposit.c b/src/lib/exchange_api_purse_create_with_deposit.c index d8f86de0d..f5871fa34 100644 --- a/src/lib/exchange_api_purse_create_with_deposit.c +++ b/src/lib/exchange_api_purse_create_with_deposit.c @@ -259,7 +259,7 @@ TALER_EXCHANGE_purse_create_with_deposit ( struct TALER_ContractDiffiePublicP contract_pub; char arg_str[sizeof (pch->purse_pub) * 2 + 32]; char *url; - uint32_t min_age; + uint32_t min_age = 0; pch = GNUNET_new (struct TALER_EXCHANGE_PurseCreateDepositHandle); pch->exchange = exchange; @@ -272,7 +272,8 @@ TALER_EXCHANGE_purse_create_with_deposit ( &pch->purse_value_after_fees), GNUNET_JSON_spec_mark_optional ( GNUNET_JSON_spec_uint32 ("minimum_age", - &min_age)), + &min_age), + NULL), GNUNET_JSON_spec_end () }; |