diff options
author | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-19 11:43:05 +0100 |
---|---|---|
committer | Marcello Stanisci <stanisci.m@gmail.com> | 2018-12-19 11:43:05 +0100 |
commit | 9c82290a1a472008f646a00a1ae802476188783c (patch) | |
tree | b7219b342384e16bb29fb7ebb505a48ae2836dd0 /src/exchange-lib/testing_api_cmd_deposit.c | |
parent | b22b36a20bef3ad4b55e78a18fdedff15c1e5b54 (diff) | |
download | exchange-9c82290a1a472008f646a00a1ae802476188783c.tar.xz |
#5459
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_deposit.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_deposit.c | 13 |
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; } |