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_exec_keyup.c | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'src/exchange-lib/testing_api_cmd_exec_keyup.c') diff --git a/src/exchange-lib/testing_api_cmd_exec_keyup.c b/src/exchange-lib/testing_api_cmd_exec_keyup.c index be08bacd..576aab3c 100644 --- a/src/exchange-lib/testing_api_cmd_exec_keyup.c +++ b/src/exchange-lib/testing_api_cmd_exec_keyup.c @@ -150,16 +150,19 @@ struct TALER_TESTING_Command TALER_TESTING_cmd_exec_keyup (const char *label, const char *config_filename) { - struct TALER_TESTING_Command cmd; struct KeyupState *ks; ks = GNUNET_new (struct KeyupState); ks->config_filename = config_filename; - cmd.cls = ks; - cmd.label = label; - cmd.run = &keyup_run; - cmd.cleanup = &keyup_cleanup; - cmd.traits = &keyup_traits; + + struct TALER_TESTING_Command cmd = { + .cls = ks, + .label = label, + .run = &keyup_run, + .cleanup = &keyup_cleanup, + .traits = &keyup_traits + }; + return cmd; } -- cgit v1.2.3