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_status.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_status.c') diff --git a/src/exchange-lib/testing_api_cmd_status.c b/src/exchange-lib/testing_api_cmd_status.c index f71fe84d..8e9290f6 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; } -- cgit v1.2.3