check return value, always
This commit is contained in:
parent
8d26ab35e0
commit
69c1ca4d23
@ -362,14 +362,13 @@ kcs (void *cls,
|
|||||||
uint8_t kyc_checked,
|
uint8_t kyc_checked,
|
||||||
uint64_t merchant_serial_id)
|
uint64_t merchant_serial_id)
|
||||||
{
|
{
|
||||||
|
|
||||||
struct TALER_EXCHANGEDB_Session *session = cls;
|
struct TALER_EXCHANGEDB_Session *session = cls;
|
||||||
struct TALER_Amount amount;
|
struct TALER_Amount amount;
|
||||||
struct TALER_Amount sum;
|
struct TALER_Amount sum;
|
||||||
|
|
||||||
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_amount_get_zero (CURRENCY,
|
TALER_amount_get_zero (CURRENCY,
|
||||||
&amount);
|
&amount));
|
||||||
amount.value = 30;
|
amount.value = 30;
|
||||||
FAILIF
|
FAILIF
|
||||||
(GNUNET_OK != plugin->insert_kyc_event (NULL,
|
(GNUNET_OK != plugin->insert_kyc_event (NULL,
|
||||||
|
@ -238,15 +238,16 @@ deposit_confirmation_run (void *cls,
|
|||||||
&contract_terms));
|
&contract_terms));
|
||||||
/* Very unlikely to fail */
|
/* Very unlikely to fail */
|
||||||
GNUNET_assert (NULL != contract_terms);
|
GNUNET_assert (NULL != contract_terms);
|
||||||
TALER_JSON_hash (contract_terms,
|
GNUNET_assert (GNUNET_OK ==
|
||||||
&h_contract_terms);
|
TALER_JSON_hash (contract_terms,
|
||||||
|
&h_contract_terms));
|
||||||
GNUNET_assert (GNUNET_OK ==
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_TESTING_get_trait_wire_details (deposit_cmd,
|
TALER_TESTING_get_trait_wire_details (deposit_cmd,
|
||||||
dcs->coin_index,
|
dcs->coin_index,
|
||||||
&wire_details));
|
&wire_details));
|
||||||
TALER_JSON_hash (wire_details,
|
GNUNET_assert (GNUNET_OK ==
|
||||||
&h_wire);
|
TALER_JSON_hash (wire_details,
|
||||||
|
&h_wire));
|
||||||
GNUNET_assert (GNUNET_OK ==
|
GNUNET_assert (GNUNET_OK ==
|
||||||
TALER_TESTING_get_trait_coin_priv (deposit_cmd,
|
TALER_TESTING_get_trait_coin_priv (deposit_cmd,
|
||||||
dcs->coin_index,
|
dcs->coin_index,
|
||||||
|
Loading…
Reference in New Issue
Block a user