diff options
author | Christian Grothoff <christian@grothoff.org> | 2024-08-24 23:06:14 +0200 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2024-08-24 23:06:14 +0200 |
commit | 02a1f91a35b5f57d4b551683ea120bfd1f351a2e (patch) | |
tree | df4bd65f4c207baf6ac530fb9889df5b2ded7cc9 | |
parent | 88a599d031dbc559b6a9f5f5c1a5803aa18b86ba (diff) |
check return values
m--------- | contrib/wallet-core | 0 | ||||
m--------- | doc/prebuilt | 0 | ||||
-rw-r--r-- | src/backend/taler-merchant-httpd_post-orders-ID-pay.c | 16 |
3 files changed, 10 insertions, 6 deletions
diff --git a/contrib/wallet-core b/contrib/wallet-core -Subproject 8b667974a7c55fe542be8a58b0a9f20e3d62d77 +Subproject 87fec1cc645cc66b8a65b2264067f473e44b37d diff --git a/doc/prebuilt b/doc/prebuilt -Subproject ab2e09b5a3711ab04f1f77f79158cc006cab319 +Subproject c1a885ac1f9d9b2fdef19a976bed01dab4f7d85 diff --git a/src/backend/taler-merchant-httpd_post-orders-ID-pay.c b/src/backend/taler-merchant-httpd_post-orders-ID-pay.c index fe18377a..1d084174 100644 --- 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; } |