summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-04 17:21:29 (GMT)
committerRobert E. McGrath <mcgrath@ncsa.uiuc.edu>2005-02-04 17:21:29 (GMT)
commit7df531486c17d79b196d39fd75cc44f30207c531 (patch)
treed193cafb7dccf201c760cafc2debe76e7c46bfd1 /src
parent8203695e5502df86ac4df7af4777f0ab6310f09e (diff)
downloadhdf5-7df531486c17d79b196d39fd75cc44f30207c531.zip
hdf5-7df531486c17d79b196d39fd75cc44f30207c531.tar.gz
hdf5-7df531486c17d79b196d39fd75cc44f30207c531.tar.bz2
[svn-r9936] Purpose:
Bug fix Description: Assertion fails when attempt to open non-hdf5 file. Solution: No need to call the decrement when the object is null. Platforms tested: verbena, shanti Misc. update:
Diffstat (limited to 'src')
-rw-r--r--src/H5Gnode.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 1f2e94f..9eeabc7 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -1796,7 +1796,8 @@ H5G_node_close(const H5F_t *f)
assert(f);
/* Free the raw B-tree node buffer */
- H5RC_DEC(H5F_GRP_BTREE_SHARED(f));
+ if (H5F_GRP_BTREE_SHARED(f))
+ H5RC_DEC(H5F_GRP_BTREE_SHARED(f));
FUNC_LEAVE_NOAPI(SUCCEED);
} /* end H5G_node_close */