summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_batch.c
diff options
context:
space:
mode:
authorMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
committerMarcello Stanisci <stanisci.m@gmail.com>2018-12-19 11:43:05 +0100
commit9c82290a1a472008f646a00a1ae802476188783c (patch)
treeb7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/exchange-lib/testing_api_cmd_batch.c
parentb22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff)
downloadexchange-9c82290a1a472008f646a00a1ae802476188783c.tar.gz
exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.bz2
exchange-9c82290a1a472008f646a00a1ae802476188783c.zip
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c
index f9e452dd5..dadfae408 100644
--- a/src/exchange-lib/testing_api_cmd_batch.c
+++ b/src/exchange-lib/testing_api_cmd_batch.c
@@ -157,7 +157,6 @@ struct TALER_TESTING_Command
TALER_TESTING_cmd_batch (const char *label,
struct TALER_TESTING_Command *batch)
{
- struct TALER_TESTING_Command cmd;
struct BatchState *bs;
unsigned int i;
@@ -175,11 +174,13 @@ TALER_TESTING_cmd_batch (const char *label,
batch,
sizeof (struct TALER_TESTING_Command) * i);
- cmd.cls = bs;
- cmd.label = label;
- cmd.run = &batch_run;
- cmd.cleanup = &batch_cleanup;
- cmd.traits = &batch_traits;
+ struct TALER_TESTING_Command cmd = {
+ .cls = bs,
+ .label = label,
+ .run = &batch_run,
+ .cleanup = &batch_cleanup,
+ .traits = &batch_traits
+ };
return cmd;
}