git.samba.org
/
ira
/
wip.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05134a9
)
r19372: Fix segfault for ui's that don't support comments.
author
Jelmer Vernooij
<jelmer@samba.org>
Tue, 17 Oct 2006 13:19:55 +0000
(13:19 +0000)
committer
Gerald (Jerry) Carter
<jerry@samba.org>
Wed, 10 Oct 2007 19:21:19 +0000
(14:21 -0500)
source/torture/ui.c
patch
|
blob
|
history
diff --git
a/source/torture/ui.c
b/source/torture/ui.c
index d8bff6cca3f2665cd0a00c36223f4a2a6732ba78..beb0e8fa9c898c707d101c9113e589c38dbd69c4 100644
(file)
--- a/
source/torture/ui.c
+++ b/
source/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;
}