diff options
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_status.c')
-rw-r--r-- | src/exchange-lib/testing_api_cmd_status.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/exchange-lib/testing_api_cmd_status.c b/src/exchange-lib/testing_api_cmd_status.c index f71fe84de..8e9290f6d 100644 --- a/src/exchange-lib/testing_api_cmd_status.c +++ b/src/exchange-lib/testing_api_cmd_status.c @@ -246,7 +246,6 @@ TALER_TESTING_cmd_status (const char *label, const char *expected_balance, unsigned int expected_response_code) { - struct TALER_TESTING_Command cmd; struct StatusState *ss; ss = GNUNET_new (struct StatusState); @@ -254,10 +253,12 @@ TALER_TESTING_cmd_status (const char *label, ss->expected_balance = expected_balance; ss->expected_response_code = expected_response_code; - cmd.cls = ss; - cmd.label = label; - cmd.run = &status_run; - cmd.cleanup = &status_cleanup; + struct TALER_TESTING_Command cmd = { + .cls = ss, + .label = label, + .run = &status_run, + .cleanup = &status_cleanup + }; return cmd; } |