From 0ee6b8315a21f05f974844c92e56accaa0954e3b Mon Sep 17 00:00:00 2001 From: Miles Bader Date: Wed, 25 Jun 1997 03:13:53 +0000 Subject: (diskfs_make_peropen): Initialize the ROOT_PARENT, SHADOW_ROOT, and SHADOW_ROOT_PARENT fields. --- libdiskfs/peropen-make.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'libdiskfs/peropen-make.c') diff --git a/libdiskfs/peropen-make.c b/libdiskfs/peropen-make.c index 62a5a13b..d74186e7 100644 --- a/libdiskfs/peropen-make.c +++ b/libdiskfs/peropen-make.c @@ -47,6 +47,12 @@ diskfs_make_peropen (struct node *np, int flags, struct peropen *context) mach_port_mod_refs (mach_task_self (), po->shadow_root_parent, MACH_PORT_RIGHT_SEND, 1); } + else + { + po->root_parent = MACH_PORT_NULL; + po->shadow_root = 0; + po->shadow_root_parent = MACH_PORT_NULL; + } diskfs_nref (np); -- cgit v1.2.3