summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
Diffstat (limited to 'sys')
-rw-r--r--sys/kern/kern_descrip.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/kern/kern_descrip.c b/sys/kern/kern_descrip.c
index dad0a2f2d2c..772d0006ed9 100644
--- a/sys/kern/kern_descrip.c
+++ b/sys/kern/kern_descrip.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_descrip.c,v 1.78 2008/05/06 20:57:19 thib Exp $ */
+/* $OpenBSD: kern_descrip.c,v 1.79 2008/06/12 18:10:06 thib Exp $ */
/* $NetBSD: kern_descrip.c,v 1.42 1996/03/30 22:24:38 christos Exp $ */
/*
@@ -837,8 +837,7 @@ fdinit(struct proc *p)
struct filedesc0 *newfdp;
extern int cmask;
- newfdp = pool_get(&fdesc_pool, PR_WAITOK);
- bzero(newfdp, sizeof(struct filedesc0));
+ newfdp = pool_get(&fdesc_pool, PR_WAITOK|PR_ZERO);
if (p != NULL) {
struct filedesc *fdp = p->p_fd;