summaryrefslogtreecommitdiff
path: root/src/mint/taler-mint-httpd_refresh.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2015-08-09 19:00:48 +0200
committerChristian Grothoff <christian@grothoff.org>2015-08-09 19:00:48 +0200
commit6453b72ef971bcd0697e5b6d2c4cc89ed4f41a90 (patch)
tree712db7483926c46346ef1b8c18ba985e081269fe /src/mint/taler-mint-httpd_refresh.c
parent1914bf7753bf6036ca58d6c371a72b3d1f4cd573 (diff)
downloadexchange-6453b72ef971bcd0697e5b6d2c4cc89ed4f41a90.tar.gz
exchange-6453b72ef971bcd0697e5b6d2c4cc89ed4f41a90.tar.bz2
exchange-6453b72ef971bcd0697e5b6d2c4cc89ed4f41a90.zip
-some cosmetics
Diffstat (limited to 'src/mint/taler-mint-httpd_refresh.c')
-rw-r--r--src/mint/taler-mint-httpd_refresh.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/mint/taler-mint-httpd_refresh.c b/src/mint/taler-mint-httpd_refresh.c
index 0a1ad2a02..f952bec76 100644
--- a/src/mint/taler-mint-httpd_refresh.c
+++ b/src/mint/taler-mint-httpd_refresh.c
@@ -209,7 +209,7 @@ get_coin_public_info (struct MHD_Connection *connection,
/**
* Verify that the signature shows that this coin is to be melted into
- * the given @a session_pub melting session, and that this is a valid
+ * the given @a session_hash melting session, and that this is a valid
* coin (we know the denomination key and the signature on it is
* valid). Essentially, this does all of the per-coin checks that can
* be done before the transaction starts.
@@ -361,7 +361,6 @@ handle_refresh_melt_json (struct MHD_Connection *connection,
unsigned int num_newcoins,
const json_t *coin_evs,
const json_t *link_encs)
-
{
int res;
unsigned int i;
@@ -407,8 +406,8 @@ handle_refresh_melt_json (struct MHD_Connection *connection,
}
coin_count = json_array_size (melt_coins);
- coin_melt_details = GNUNET_malloc (coin_count *
- sizeof (struct TMH_DB_MeltDetails));
+ coin_melt_details = GNUNET_new_array (coin_count,
+ struct TMH_DB_MeltDetails);
for (i=0;i<coin_count;i++)
{
/* decode JSON data on coin to melt */