summaryrefslogtreecommitdiffstats
path: root/src/H5Gent.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-05-07 19:34:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-05-07 19:34:25 (GMT)
commitc952661afbac41d4bf2622899bf2a4c2c02b07b5 (patch)
treea188fc8200d3134b1ee6bd64694c63f303cb27e9 /src/H5Gent.c
parent314bfe6f3c732897047fe73de85979a3844bca0c (diff)
downloadhdf5-c952661afbac41d4bf2622899bf2a4c2c02b07b5.zip
hdf5-c952661afbac41d4bf2622899bf2a4c2c02b07b5.tar.gz
hdf5-c952661afbac41d4bf2622899bf2a4c2c02b07b5.tar.bz2
[svn-r10734] Purpose:
Bug fix Description: Fix several problems with mounting files on an entry in a group when the file the group is in has been closed. Platforms tested: FreeBSD 4.11 (sleipnir) h5committest
Diffstat (limited to 'src/H5Gent.c')
-rw-r--r--src/H5Gent.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Gent.c b/src/H5Gent.c
index 69a34f8..08b3988 100644
--- a/src/H5Gent.c
+++ b/src/H5Gent.c
@@ -398,7 +398,8 @@ H5G_ent_copy(H5G_entry_t *dst, const H5G_entry_t *src, H5G_ent_copy_depth_t dept
/* If the depth is "very shallow", keep the old entry's user path */
if(depth==H5G_COPY_LIMITED) {
tmp_user_path_r=dst->user_path_r;
- H5RS_decr(dst->canon_path_r);
+ if(dst->canon_path_r)
+ H5RS_decr(dst->canon_path_r);
} /* end if */
/* Copy the top level information */