summaryrefslogtreecommitdiff
path: root/src/testing/testing_api_loop.c
diff options
context:
space:
mode:
authorChristian Grothoff <christian@grothoff.org>2021-10-27 21:59:04 +0200
committerChristian Grothoff <christian@grothoff.org>2021-10-27 21:59:04 +0200
commit382fb837bd43ec7de93c8e17404732b4c95ccaca (patch)
tree1737647cf5dc6872886919adfcb1034108225832 /src/testing/testing_api_loop.c
parentb449c7353ef5d789500244c790bae5affedf0ee7 (diff)
downloadexchange-382fb837bd43ec7de93c8e17404732b4c95ccaca.tar.gz
exchange-382fb837bd43ec7de93c8e17404732b4c95ccaca.tar.bz2
exchange-382fb837bd43ec7de93c8e17404732b4c95ccaca.zip
-work on testing FTBFS
Diffstat (limited to 'src/testing/testing_api_loop.c')
-rw-r--r--src/testing/testing_api_loop.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c
index ba1555895..0de4230ea 100644
--- a/src/testing/testing_api_loop.c
+++ b/src/testing/testing_api_loop.c
@@ -289,8 +289,9 @@ do_shutdown (void *cls)
for (unsigned int j = 0;
NULL != (cmd = &is->commands[j])->label;
j++)
- cmd->cleanup (cmd->cls,
- cmd);
+ if (NULL != cmd->cleanup)
+ cmd->cleanup (cmd->cls,
+ cmd);
if (NULL != is->exchange)
{