diff options
Diffstat (limited to 'source4/torture')
-rw-r--r-- | source4/torture/ui.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/source4/torture/ui.c b/source4/torture/ui.c index d8bff6cca3..beb0e8fa9c 100644 --- a/source4/torture/ui.c +++ b/source4/torture/ui.c @@ -49,7 +49,8 @@ void _torture_fail_ext(struct torture_context *context, va_start(ap, fmt); context->last_reason = talloc_vasprintf(context, fmt, ap); /* make sure the reason for the failure is displayed */ - context->ui_ops->comment(context, context->last_reason); + if (context->ui_ops->comment) + context->ui_ops->comment(context, context->last_reason); va_end(ap); context->last_result = TORTURE_FAIL; } |