avoid core dump on debugging if e->e_message == NULL
authorEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 22 Nov 1994 13:06:40 +0000 (05:06 -0800)
committerEric Allman <eric@ucbvax.Berkeley.EDU>
Tue, 22 Nov 1994 13:06:40 +0000 (05:06 -0800)
SCCS-vsn: usr.sbin/sendmail/src/deliver.c 8.112

usr/src/usr.sbin/sendmail/src/deliver.c

index 1f27d0a..a76b5bf 100644 (file)
@@ -7,7 +7,7 @@
  */
 
 #ifndef lint
  */
 
 #ifndef lint
-static char sccsid[] = "@(#)deliver.c  8.111 (Berkeley) %G%";
+static char sccsid[] = "@(#)deliver.c  8.112 (Berkeley) %G%";
 #endif /* not lint */
 
 #include "sendmail.h"
 #endif /* not lint */
 
 #include "sendmail.h"
@@ -1840,7 +1840,7 @@ giveresponse(stat, m, mci, ctladdr, e)
 
        if (tTd(11, 2))
                printf("giveresponse: stat=%d, e->e_message=%s\n",
 
        if (tTd(11, 2))
                printf("giveresponse: stat=%d, e->e_message=%s\n",
-                       stat, e->e_message);
+                       stat, e->e_message == NULL ? "<NULL>" : e->e_message);
 
        if (stat != EX_TEMPFAIL)
                setstat(stat);
 
        if (stat != EX_TEMPFAIL)
                setstat(stat);