summaryrefslogtreecommitdiffstats
path: root/sys/kern/subr_prf.c
diff options
context:
space:
mode:
authorpeter <peter@FreeBSD.org>2000-04-29 11:32:15 +0000
committerpeter <peter@FreeBSD.org>2000-04-29 11:32:15 +0000
commita63f67a2b62190c2dbf87506a1ca5ba5ff395f98 (patch)
tree300eec27e0a2a019c08f404977ab770e13b509aa /sys/kern/subr_prf.c
parent00f2105c72d92c53d124673b9b0fb99cec51218d (diff)
downloadFreeBSD-src-a63f67a2b62190c2dbf87506a1ca5ba5ff395f98.zip
FreeBSD-src-a63f67a2b62190c2dbf87506a1ca5ba5ff395f98.tar.gz
Do not fault if curproc is null.
Diffstat (limited to 'sys/kern/subr_prf.c')
-rw-r--r--sys/kern/subr_prf.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/kern/subr_prf.c b/sys/kern/subr_prf.c
index e8d523e..3794ccf 100644
--- a/sys/kern/subr_prf.c
+++ b/sys/kern/subr_prf.c
@@ -110,7 +110,7 @@ uprintf(const char *fmt, ...)
struct putchar_arg pca;
int retval = 0;
- if (p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) {
+ if (p && p->p_flag & P_CONTROLT && p->p_session->s_ttyvp) {
va_start(ap, fmt);
pca.tty = p->p_session->s_ttyp;
pca.flags = TOTTY;
OpenPOWER on IntegriCloud