diff options
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_batch.c | 13 |
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; } |