commit 02a1f91a35b5f57d4b551683ea120bfd1f351a2e parent 88a599d031dbc559b6a9f5f5c1a5803aa18b86ba Author: Christian Grothoff <christian@grothoff.org> Date: Sat, 24 Aug 2024 23:06:14 +0200 check return values Diffstat:
| M | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | | | 16 | ++++++++++------ |
1 file changed, 10 insertions(+), 6 deletions(-)
diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c @@ -1508,15 +1508,19 @@ static json_t * build_token_sigs (struct PayContext *pc) { json_t *token_sigs = json_array (); + + GNUNET_assert (NULL != token_sigs); for (unsigned int i = 0; i < pc->output_tokens_len; i++) { - json_array_append_new (token_sigs, GNUNET_JSON_PACK ( - GNUNET_JSON_pack_blinded_sig ("blind_sig", pc-> - output_tokens[i].sig. - signature) - )); + GNUNET_assert (0 == + json_array_append_new ( + token_sigs, + GNUNET_JSON_PACK ( + GNUNET_JSON_pack_blinded_sig ( + "blind_sig", + pc->output_tokens[i].sig.signature) + ))); } - return token_sigs; }