exchange

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

commit 3a1738942c000e3e1e24358a67f5dc21541881a2
parent 535ba4559e7d43ac9fbcf435fd7922d011241c9f
Author: Christian Grothoff <christian@grothoff.org>
Date:   Thu,  1 May 2025 00:16:29 +0200

-fix assert

Diffstat:
Msrc/exchange/taler-exchange-httpd_withdraw.c | 6+++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/src/exchange/taler-exchange-httpd_withdraw.c b/src/exchange/taler-exchange-httpd_withdraw.c @@ -295,20 +295,20 @@ struct WithdrawContext */ #define SET_ERROR(wc, ec) \ do \ - { GNUNET_static_assert (WITHDRAW_ERROR_NONE != wc->error.code); \ + { GNUNET_static_assert (WITHDRAW_ERROR_NONE != ec); \ (wc)->error.code = (ec); \ (wc)->phase = WITHDRAW_PHASE_GENERATE_REPLY_ERROR; } while (0) #define SET_ERROR_WITH_FIELD(wc, ec, field) \ do \ - { GNUNET_static_assert (WITHDRAW_ERROR_NONE != wc->error.code); \ + { GNUNET_static_assert (WITHDRAW_ERROR_NONE != ec); \ (wc)->error.code = (ec); \ (wc)->error.details.field = (field); \ (wc)->phase = WITHDRAW_PHASE_GENERATE_REPLY_ERROR; } while (0) #define SET_ERROR_WITH_DETAIL(wc, ec, field, value) \ do \ - { GNUNET_static_assert (WITHDRAW_ERROR_NONE != wc->error.code); \ + { GNUNET_static_assert (WITHDRAW_ERROR_NONE != ec); \ (wc)->error.code = (ec); \ (wc)->error.details.field = (value); \ (wc)->phase = WITHDRAW_PHASE_GENERATE_REPLY_ERROR; } while (0)