gnunet-svn
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[GNUnet-SVN] [taler-exchange] branch master updated: check return value,


From: gnunet
Subject: [GNUnet-SVN] [taler-exchange] branch master updated: check return value, always
Date: Mon, 03 Jun 2019 00:42:35 +0200

This is an automated email from the git hooks/post-receive script.

grothoff pushed a commit to branch master
in repository exchange.

The following commit(s) were added to refs/heads/master by this push:
     new 69c1ca4d check return value, always
69c1ca4d is described below

commit 69c1ca4d2363a921fc16b7579dce86e0cb29d3b1
Author: Christian Grothoff <address@hidden>
AuthorDate: Mon Jun 3 00:42:32 2019 +0200

    check return value, always
---
 src/exchangedb/test_exchangedb.c                       |  7 +++----
 src/lib/testing_auditor_api_cmd_deposit_confirmation.c | 11 ++++++-----
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/src/exchangedb/test_exchangedb.c b/src/exchangedb/test_exchangedb.c
index 66ccb4c7..9e8d2965 100644
--- a/src/exchangedb/test_exchangedb.c
+++ b/src/exchangedb/test_exchangedb.c
@@ -362,14 +362,13 @@ kcs (void *cls,
      uint8_t kyc_checked,
      uint64_t merchant_serial_id)
 {
-
   struct TALER_EXCHANGEDB_Session *session = cls;
   struct TALER_Amount amount;
   struct TALER_Amount sum;
 
-
-  TALER_amount_get_zero (CURRENCY,
-                         &amount);
+  GNUNET_assert (GNUNET_OK ==
+                 TALER_amount_get_zero (CURRENCY,
+                                        &amount));
   amount.value = 30;
   FAILIF
     (GNUNET_OK != plugin->insert_kyc_event (NULL,
diff --git a/src/lib/testing_auditor_api_cmd_deposit_confirmation.c 
b/src/lib/testing_auditor_api_cmd_deposit_confirmation.c
index ad02a6ef..70fd01e1 100644
--- a/src/lib/testing_auditor_api_cmd_deposit_confirmation.c
+++ b/src/lib/testing_auditor_api_cmd_deposit_confirmation.c
@@ -238,15 +238,16 @@ deposit_confirmation_run (void *cls,
                                                         &contract_terms));
   /* Very unlikely to fail */
   GNUNET_assert (NULL != contract_terms);
-  TALER_JSON_hash (contract_terms,
-                  &h_contract_terms);
+  GNUNET_assert (GNUNET_OK ==
+                 TALER_JSON_hash (contract_terms,
+                                  &h_contract_terms));
   GNUNET_assert (GNUNET_OK ==
                 TALER_TESTING_get_trait_wire_details (deposit_cmd,
                                                       dcs->coin_index,
                                                       &wire_details));
-  TALER_JSON_hash (wire_details,
-                  &h_wire);
-
+  GNUNET_assert (GNUNET_OK ==
+                 TALER_JSON_hash (wire_details,
+                                  &h_wire));
   GNUNET_assert (GNUNET_OK ==
                 TALER_TESTING_get_trait_coin_priv (deposit_cmd,
                                                    dcs->coin_index,

-- 
To stop receiving notification emails like this one, please contact
address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]