diff options
author | Miles Bader <miles@gnu.org> | 1997-06-25 03:13:53 +0000 |
---|---|---|
committer | Miles Bader <miles@gnu.org> | 1997-06-25 03:13:53 +0000 |
commit | 0ee6b8315a21f05f974844c92e56accaa0954e3b (patch) | |
tree | 03deb2da72cb77be948e15807e7b6aec44c8cb15 | |
parent | fccee1c71d7b82023f2b28c0f05a0f993c1898f4 (diff) |
(diskfs_make_peropen):
Initialize the ROOT_PARENT, SHADOW_ROOT, and SHADOW_ROOT_PARENT fields.
-rw-r--r-- | libdiskfs/peropen-make.c | 6 |
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); |