summaryrefslogtreecommitdiff
path: root/libdiskfs
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-06-25 03:13:53 +0000
committerMiles Bader <miles@gnu.org>1997-06-25 03:13:53 +0000
commit0ee6b8315a21f05f974844c92e56accaa0954e3b (patch)
tree03deb2da72cb77be948e15807e7b6aec44c8cb15 /libdiskfs
parentfccee1c71d7b82023f2b28c0f05a0f993c1898f4 (diff)
(diskfs_make_peropen):
Initialize the ROOT_PARENT, SHADOW_ROOT, and SHADOW_ROOT_PARENT fields.
Diffstat (limited to 'libdiskfs')
-rw-r--r--libdiskfs/peropen-make.c6
1 files changed, 6 insertions, 0 deletions
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);