small stuff

This commit is contained in:
Christian Grothoff 2015-08-06 12:46:15 +02:00
parent 08cdd3d084
commit ee3dffa87d
2 changed files with 37 additions and 37 deletions

View File

@ -289,7 +289,7 @@ PERF_TALER_MINTDB_deposit_copy (const struct TALER_MINTDB_Deposit *deposit)
{
struct TALER_MINTDB_Deposit *copy;
GNUNET_assert (NULL != (copy = GNUNET_new (struct TALER_MINTDB_Deposit)));
copy = GNUNET_new (struct TALER_MINTDB_Deposit);
*copy = *deposit;
json_incref (copy->wire);
copy->coin.denom_pub.rsa_public_key =
@ -308,7 +308,7 @@ PERF_TALER_MINTDB_deposit_copy (const struct TALER_MINTDB_Deposit *deposit)
int
PERF_TALER_MINTDB_deposit_free (struct TALER_MINTDB_Deposit *deposit)
{
if ( NULL == deposit)
if (NULL == deposit)
return GNUNET_OK;
GNUNET_CRYPTO_rsa_public_key_free (deposit->coin.denom_pub.rsa_public_key);
GNUNET_CRYPTO_rsa_signature_free (deposit->coin.denom_sig.rsa_signature);

View File

@ -127,8 +127,8 @@ data_copy (const struct PERF_TALER_MINTDB_Data *data, struct PERF_TALER_MINTDB_D
return;
case PERF_TALER_MINTDB_COIN:
copy->data.coin =
PERF_TALER_MINTDB_coin_copy (data->data.coin);
copy->data.coin
= PERF_TALER_MINTDB_coin_copy (data->data.coin);
return;
case PERF_TALER_MINTDB_RESERVE: