aboutsummaryrefslogtreecommitdiff
path: root/src/mintdb
diff options
context:
space:
mode:
authorFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-08-07 10:51:27 +0200
committerFournier Nicolas <nicolas.fournier@ensta-paristech.fr>2015-08-07 10:51:27 +0200
commit7328d1fa281a68d1e54450989fbbed19dd23680e (patch)
tree3bfa255f481cfac1632e1bc12c01661039ef284b /src/mintdb
parentf655ce9ad18736d88d34ad681e1bb730245a7fb2 (diff)
fixes
Diffstat (limited to 'src/mintdb')
-rw-r--r--src/mintdb/perf_taler_mintdb_interpreter.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/src/mintdb/perf_taler_mintdb_interpreter.c b/src/mintdb/perf_taler_mintdb_interpreter.c
index 810253e2c..206ef7ebb 100644
--- a/src/mintdb/perf_taler_mintdb_interpreter.c
+++ b/src/mintdb/perf_taler_mintdb_interpreter.c
@@ -97,7 +97,6 @@ data_free (struct PERF_TALER_MINTDB_Data *data)
default:
break;
}
- data->type = PERF_TALER_MINTDB_NONE;
}
@@ -111,7 +110,6 @@ static void
data_copy (const struct PERF_TALER_MINTDB_Data *data,
struct PERF_TALER_MINTDB_Data *copy)
{
- GNUNET_assert (PERF_TALER_MINTDB_NONE == copy->type);
copy->type = data->type;
switch (data->type)
{
@@ -121,8 +119,8 @@ data_copy (const struct PERF_TALER_MINTDB_Data *data,
return;
case PERF_TALER_MINTDB_DEPOSIT:
- copy->data.deposit =
- PERF_TALER_MINTDB_deposit_copy (data->data.deposit);
+ copy->data.deposit
+ = PERF_TALER_MINTDB_deposit_copy (data->data.deposit);
return;
case PERF_TALER_MINTDB_COIN:
@@ -131,13 +129,13 @@ data_copy (const struct PERF_TALER_MINTDB_Data *data,
return;
case PERF_TALER_MINTDB_RESERVE:
- copy->data.reserve =
- PERF_TALER_MINTDB_reserve_copy (data->data.reserve);
+ copy->data.reserve
+ = PERF_TALER_MINTDB_reserve_copy (data->data.reserve);
return;
case PERF_TALER_MINTDB_DENOMINATION_INFO:
- copy->data.dki =
- PERF_TALER_MINTDB_denomination_copy (data->data.dki);
+ copy->data.dki
+ = PERF_TALER_MINTDB_denomination_copy (data->data.dki);
return;
default:
@@ -764,7 +762,6 @@ interpret_load_array (struct PERF_TALER_MINTDB_interpreter_state *state)
/* Extracting the data from the loop_indexth indice in save_index
* array.
*/
- data_free (&cmd->exposed);
loaded_data = &state->cmd[save_index].details.save_array.data_saved[loop_iter];
data_copy (loaded_data,
&cmd->exposed);
@@ -783,7 +780,6 @@ interprete_load_random (struct PERF_TALER_MINTDB_interpreter_state *state)
unsigned int index;
int save_index;
- data_free (&cmd->exposed);
save_index = cmd->details.load_random.index_save;
index = GNUNET_CRYPTO_random_u32 (GNUNET_CRYPTO_QUALITY_WEAK,
state->cmd[save_index].details.save_array.nb_saved);
@@ -942,7 +938,6 @@ interpret (struct PERF_TALER_MINTDB_interpreter_state *state)
.details.get_reserve.label_reserve)));
data = &state->cmd[reserve_index].exposed;
-
GNUNET_assert (GNUNET_OK ==
(state->plugin->reserve_get (state->plugin->cls,
state->session,