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_deposit.c | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_deposit.c') diff --git a/src/exchange-lib/testing_api_cmd_deposit.c b/src/exchange-lib/testing_api_cmd_deposit.c index d0cfd62d..6fa2310d 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; } -- cgit v1.2.3