From 7df531486c17d79b196d39fd75cc44f30207c531 Mon Sep 17 00:00:00 2001 From: "Robert E. McGrath" Date: Fri, 4 Feb 2005 12:21:29 -0500 Subject: [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: --- src/H5Gnode.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 */ -- cgit v0.12