summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 38fcf43..d30f6f0 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -301,7 +301,7 @@ H5Gopen(hid_t loc_id, const char *name)
HGOTO_ERROR(H5E_SYM, H5E_NOTFOUND, FAIL, "group not found");
/* Open the group */
- if ((grp = H5G_open(&ent, H5AC_dxpl_id)) <0)
+ if ((grp = H5G_open(&ent, H5AC_dxpl_id))==NULL)
HGOTO_ERROR(H5E_SYM, H5E_CANTOPENOBJ, FAIL, "unable to open group");
/* Register an atom for the group */
if ((ret_value = H5I_register(H5I_GROUP, grp)) < 0)