diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/testing/testing_api_loop.c | 5 | 
1 files changed, 3 insertions, 2 deletions
diff --git a/src/testing/testing_api_loop.c b/src/testing/testing_api_loop.c index 7b1387b5..1ea1d5a2 100644 --- a/src/testing/testing_api_loop.c +++ b/src/testing/testing_api_loop.c @@ -274,8 +274,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)    {      TALER_LOG_DEBUG ("Disconnecting the exchange\n");  | 
