summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin/sendmail/libsm/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'gnu/usr.sbin/sendmail/libsm/debug.c')
-rw-r--r--gnu/usr.sbin/sendmail/libsm/debug.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/gnu/usr.sbin/sendmail/libsm/debug.c b/gnu/usr.sbin/sendmail/libsm/debug.c
index 5a201967563..787630eec95 100644
--- a/gnu/usr.sbin/sendmail/libsm/debug.c
+++ b/gnu/usr.sbin/sendmail/libsm/debug.c
@@ -8,7 +8,7 @@
*/
#include <sm/gen.h>
-SM_RCSID("@(#)$Sendmail: debug.c,v 1.25 2001/09/04 22:41:27 ca Exp $")
+SM_RCSID("@(#)$Sendmail: debug.c,v 1.28 2001/09/25 19:57:05 gshapiro Exp $")
/*
** libsm debugging and tracing
@@ -97,6 +97,8 @@ sm_dprintf(fmt, va_alist)
{
SM_VA_LOCAL_DECL
+ if (SmDebugOutput == NULL)
+ return;
SM_VA_START(ap, fmt);
sm_io_vfprintf(SmDebugOutput, SmDebugOutput->f_timeout, fmt, ap);
SM_VA_END(ap);