aboutsummaryrefslogtreecommitdiff
path: root/src/exchange-lib/testing_api_cmd_batch.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2018-10-13 18:08:51 +0200
committerChristian Grothoff <christian@grothoff.org>2018-10-13 18:08:51 +0200
commit85e22419c938d8aaeeba81a7a5a2f2a9ca112397 (patch)
treefe7463951154329a1552b3a220d3c82a88ff74f2 /src/exchange-lib/testing_api_cmd_batch.c
parentc09c900922079be0314009719042a9fd08df798e (diff)
fix issue with 'meta' not being initialized - by getting rid of it
Diffstat (limited to 'src/exchange-lib/testing_api_cmd_batch.c')
-rw-r--r--src/exchange-lib/testing_api_cmd_batch.c13
1 files changed, 12 insertions, 1 deletions
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;
+}