exchange

Base system with REST service to issue digital coins, run by the payment service provider
Log | Files | Refs | Submodules | README | LICENSE

commit 5b78951826e1f6984281f50cb43a6cf2c3f2e33c
parent 7890c46c9d0b47589ec3144a154cc6e2b27249dc
Author: Christian Grothoff <christian@grothoff.org>
Date:   Mon, 11 Sep 2023 23:11:48 +0200

handle NULL entry correctly

Diffstat:
Msrc/exchangedb/pg_get_coin_transactions.c | 6++++--
1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/exchangedb/pg_get_coin_transactions.c b/src/exchangedb/pg_get_coin_transactions.c @@ -189,8 +189,10 @@ add_coin_purse_deposit (void *cls, NULL), GNUNET_PQ_result_spec_auto_from_type ("coin_sig", &deposit->coin_sig), - GNUNET_PQ_result_spec_auto_from_type ("age_commitment_hash", - &deposit->h_age_commitment), + GNUNET_PQ_result_spec_allow_null ( + GNUNET_PQ_result_spec_auto_from_type ("age_commitment_hash", + &deposit->h_age_commitment), + &deposit->no_age_commitment), GNUNET_PQ_result_spec_allow_null ( GNUNET_PQ_result_spec_bool ("refunded", &deposit->refunded),