From 76a19fcdb48ad2cd5c97dc563b2d2186fcb525e7 Mon Sep 17 00:00:00 2001 From: christos Date: Sat, 15 Apr 2006 04:50:08 +0000 Subject: [PATCH] Coverity CID 845: Make it clear that devnullfp != NULL. --- sys/kern/kern_descrip.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c index 469667188f8d..a3ea997befcc 100644 --- a/sys/kern/kern_descrip.c +++ b/sys/kern/kern_descrip.c @@ -1,4 +1,4 @@ -/* $NetBSD: kern_descrip.c,v 1.141 2006/03/07 17:13:53 pooka Exp $ */ +/* $NetBSD: kern_descrip.c,v 1.142 2006/04/15 04:50:08 christos Exp $ */ /* * Copyright (c) 1982, 1986, 1989, 1991, 1993 @@ -37,7 +37,7 @@ */ #include -__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.141 2006/03/07 17:13:53 pooka Exp $"); +__KERNEL_RCSID(0, "$NetBSD: kern_descrip.c,v 1.142 2006/04/15 04:50:08 christos Exp $"); #include #include @@ -1774,7 +1774,7 @@ fdcheckstd(l) continue; snprintf(which, sizeof(which), ",%d", i); strlcat(closed, which, sizeof(closed)); - if (devnull < 0) { + if (devnullfp == NULL) { if ((error = falloc(p, &fp, &fd)) != 0) return (error); NDINIT(&nd, LOOKUP, FOLLOW, UIO_SYSSPACE, "/dev/null",