Don't print out a null pointer in debugging info.
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 22 Aug 1983 06:13:37 +0000 (22:13 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Mon, 22 Aug 1983 06:13:37 +0000 (22:13 -0800)
SCCS-vsn: usr.sbin/sendmail/src/envelope.c 4.2

usr/src/usr.sbin/sendmail/src/envelope.c

index ed1dcc5..f441e45 100644 (file)
@@ -3,7 +3,7 @@
 #include "sendmail.h"
 #include <sys/stat.h>
 
 #include "sendmail.h"
 #include <sys/stat.h>
 
-SCCSID(@(#)envelope.c  4.1             %G%);
+SCCSID(@(#)envelope.c  4.2             %G%);
 
 /*
 **  NEWENVELOPE -- allocate a new envelope
 
 /*
 **  NEWENVELOPE -- allocate a new envelope
@@ -546,7 +546,7 @@ setsender(from)
 
 # ifdef DEBUG
        if (tTd(45, 1))
 
 # ifdef DEBUG
        if (tTd(45, 1))
-               printf("setsender(%s)\n", from);
+               printf("setsender(%s)\n", from == NULL ? "" : from);
 # endif DEBUG
 
        /*
 # endif DEBUG
 
        /*