svn commit: samba r19372 - in branches/SAMBA_4_0/source/torture: .
jelmer at samba.org
jelmer at samba.org
Tue Oct 17 13:19:55 GMT 2006
Author: jelmer
Date: 2006-10-17 13:19:55 +0000 (Tue, 17 Oct 2006)
New Revision: 19372
WebSVN: http://websvn.samba.org/cgi-bin/viewcvs.cgi?view=rev&root=samba&rev=19372
Log:
Fix segfault for ui's that don't support comments.
Modified:
branches/SAMBA_4_0/source/torture/ui.c
Changeset:
Modified: branches/SAMBA_4_0/source/torture/ui.c
===================================================================
--- branches/SAMBA_4_0/source/torture/ui.c 2006-10-17 12:41:24 UTC (rev 19371)
+++ branches/SAMBA_4_0/source/torture/ui.c 2006-10-17 13:19:55 UTC (rev 19372)
@@ -49,7 +49,8 @@
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;
}
More information about the samba-cvs
mailing list