summaryrefslogtreecommitdiffstats
path: root/src/H5Gobj.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-08-30 10:09:03 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-08-30 10:09:03 (GMT)
commit926a033b139974a8a9fd6ddec7150bcbdb556675 (patch)
treea7eca53a2712266cecf6555e0f3bea213bccb168 /src/H5Gobj.c
parent71d6bffdd745c865e988b29fac8d0173d7fa0131 (diff)
downloadhdf5-926a033b139974a8a9fd6ddec7150bcbdb556675.zip
hdf5-926a033b139974a8a9fd6ddec7150bcbdb556675.tar.gz
hdf5-926a033b139974a8a9fd6ddec7150bcbdb556675.tar.bz2
[svn-r14128] Description:
Correct typo in error returned from H5G_open_name() routine. Tested on: FreeBSD/32 6.2 (duty)
Diffstat (limited to 'src/H5Gobj.c')
-rw-r--r--src/H5Gobj.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Gobj.c b/src/H5Gobj.c
index 397c753..2f573f5 100644
--- a/src/H5Gobj.c
+++ b/src/H5Gobj.c
@@ -659,7 +659,7 @@ H5G_obj_iterate(hid_t loc_id, const char *group_name,
*/
if(H5G_loc(loc_id, &loc) < 0)
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a location")
- if((grp = H5G_open_name(&loc, group_name, H5P_DEFAULT, dxpl_id)) < 0)
+ if(NULL == (grp = H5G_open_name(&loc, group_name, H5P_DEFAULT, dxpl_id)))
HGOTO_ERROR(H5E_SYM, H5E_CANTOPENOBJ, FAIL, "unable to open group")
if((gid = H5I_register(H5I_GROUP, grp)) < 0)
HGOTO_ERROR(H5E_ATOM, H5E_CANTREGISTER, FAIL, "unable to register group")