diff options
author | peter <peter@FreeBSD.org> | 2000-04-29 11:32:15 +0000 |
---|---|---|
committer | peter <peter@FreeBSD.org> | 2000-04-29 11:32:15 +0000 |
commit | a63f67a2b62190c2dbf87506a1ca5ba5ff395f98 (patch) | |
tree | 300eec27e0a2a019c08f404977ab770e13b509aa /sys/kern/subr_prf.c | |
parent | 00f2105c72d92c53d124673b9b0fb99cec51218d (diff) | |
download | FreeBSD-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.c | 2 |
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; |