From 85e22419c938d8aaeeba81a7a5a2f2a9ca112397 Mon Sep 17 00:00:00 2001 From: Christian Grothoff Date: Sat, 13 Oct 2018 18:08:51 +0200 Subject: fix issue with 'meta' not being initialized - by getting rid of it --- src/exchange-lib/testing_api_cmd_batch.c | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) (limited to 'src/exchange-lib/testing_api_cmd_batch.c') diff --git a/src/exchange-lib/testing_api_cmd_batch.c b/src/exchange-lib/testing_api_cmd_batch.c index 738012b8..e4d11ae5 100644 --- a/src/exchange-lib/testing_api_cmd_batch.c +++ b/src/exchange-lib/testing_api_cmd_batch.c @@ -156,7 +156,6 @@ TALER_TESTING_cmd_batch (const char *label, struct BatchState *bs; unsigned int i; - cmd.meta = GNUNET_YES; bs = GNUNET_new (struct BatchState); bs->batch_ip = -1; @@ -179,3 +178,15 @@ TALER_TESTING_cmd_batch (const char *label, return cmd; } + + +/** + * Test if this command is a batch command. + * + * @return false if not, true if it is a batch command + */ +int +TALER_TESTING_cmd_is_batch (const struct TALER_TESTING_Command *cmd) +{ + return cmd->run == &batch_run; +} -- cgit v1.2.3