summaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_deposit.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_deposit.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_deposit.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/exchange-lib/testing_api_cmd_deposit.c b/src/exchange-lib/testing_api_cmd_deposit.c
index d0cfd62da..6fa2310d3 100644
--- a/src/exchange-lib/testing_api_cmd_deposit.c
+++ b/src/exchange-lib/testing_api_cmd_deposit.c
@@ -519,7 +519,6 @@ TALER_TESTING_cmd_deposit
const char *amount,
unsigned int expected_response_code)
{
- struct TALER_TESTING_Command cmd = {0}; /* need explicit zeroing..*/
struct DepositState *ds;
ds = GNUNET_new (struct DepositState);
@@ -543,11 +542,13 @@ TALER_TESTING_cmd_deposit
ds->amount = amount;
ds->expected_response_code = expected_response_code;
- cmd.cls = ds;
- cmd.label = label;
- cmd.run = &deposit_run;
- cmd.cleanup = &deposit_cleanup;
- cmd.traits = &deposit_traits;
+ struct TALER_TESTING_Command cmd = {
+ .cls = ds,
+ .label = label,
+ .run = &deposit_run,
+ .cleanup = &deposit_cleanup,
+ .traits = &deposit_traits
+ };
return cmd;
}