commit 5caf95cbccf40e2566781e147cff4c92a680b662 parent fbb0c53cc8524428387059d966aca726716494f3 Author: Christian Grothoff <grothoff@gnunet.org> Date: Fri, 10 Jul 2026 10:13:53 +0200 fix null check Diffstat:
| M | src/testing/testing_api_cmd_post_orders.c | | | 9 | ++++++--- |
1 file changed, 6 insertions(+), 3 deletions(-)
diff --git a/src/testing/testing_api_cmd_post_orders.c b/src/testing/testing_api_cmd_post_orders.c @@ -316,10 +316,13 @@ order_cb (struct OrdersState *ps, TALER_TESTING_interpreter_fail (ps->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");