merchant

Merchant backend to process payments, run by merchants
Log | Files | Refs | Submodules | README | LICENSE

commit f405f6f043d5e32b3365b4b40df7a73e503c6e3d
parent 5caf95cbccf40e2566781e147cff4c92a680b662
Author: Christian Grothoff <grothoff@gnunet.org>
Date:   Fri, 10 Jul 2026 10:14:58 +0200

fix null check

Diffstat:
Msrc/testing/testing_api_cmd_post_using_templates.c | 9++++++---
1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/src/testing/testing_api_cmd_post_using_templates.c b/src/testing/testing_api_cmd_post_using_templates.c @@ -294,10 +294,13 @@ post_using_templates_cb (struct PostUsingTemplatesState *tis, TALER_TESTING_interpreter_fail (tis->is); return; } - if (NULL == por->details.ok.token) - prev_token = &zero_token; + const struct TALER_ClaimTokenP *resp_token; + + resp_token = (NULL != por->details.ok.token) + ? por->details.ok.token + : &zero_token; if (0 != GNUNET_memcmp (prev_token, - por->details.ok.token)) + resp_token)) { GNUNET_log (GNUNET_ERROR_TYPE_ERROR, "Claim tokens for identical requests do not match\n");