commit 77f99a084760ae7e1cfc42b0a78d904fd17cd41d
parent a4b0503ecc5c9794c759d640bc4c0b96063319a6
Author: Christian Grothoff <christian@grothoff.org>
Date: Wed, 18 Nov 2026 16:47:15 +0100
more explicit check
Diffstat:
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/src/lib/exchange_api_get-coins-COIN_PUB-history.c b/src/lib/exchange_api_get-coins-COIN_PUB-history.c
@@ -286,6 +286,7 @@ parse_melt (struct CoinHistoryParseContext *pc,
struct TALER_DenominationHashP *denoms_h = NULL;
struct TALER_TransferPublicKeyP *transfer_pubs = NULL;
size_t num_transfer_pubs = 0;
+ bool no_transfer_pubs;
struct GNUNET_JSON_Specification spec[] = {
TALER_JSON_spec_amount_any ("melt_fee",
&rh->details.melt.melt_fee),
@@ -315,7 +316,7 @@ parse_melt (struct CoinHistoryParseContext *pc,
sizeof (struct TALER_TransferPublicKeyP),
&num_transfer_pubs,
(void **) &transfer_pubs),
- NULL),
+ &no_transfer_pubs),
GNUNET_JSON_spec_end ()
};
@@ -327,7 +328,7 @@ parse_melt (struct CoinHistoryParseContext *pc,
GNUNET_break_op (0);
return GNUNET_SYSERR;
}
- if ( (NULL != transfer_pubs) &&
+ if ( (! no_transfer_pubs) &&
(num_transfer_pubs != rh->details.melt.num_fresh_coins) )
{
GNUNET_break_op (0);