From 9c82290a1a472008f646a00a1ae802476188783c Mon Sep 17 00:00:00 2001 From: Marcello Stanisci Date: Wed, 19 Dec 2018 11:43:05 +0100 Subject: #5459 --- src/exchange-lib/testing_api_cmd_batch.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_batch.c') diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c index f9e452dd..dadfae40 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; } -- cgit v1.2.3