summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJacob Smith <jake.smith@hdfgroup.org>2018-12-13 16:27:27 (GMT)
committerJacob Smith <jake.smith@hdfgroup.org>2018-12-13 16:27:27 (GMT)
commit943b7f9c0276b225b93287227a8c31dc556666b7 (patch)
tree4962bfcf4e292f6fd462b435e6f4799e1f8fb0b7 /src
parentad6de59e4c412545ade72269907c73fcdd85187e (diff)
parent1dd81af5a28125a3a6c5e12f28e3c95458efb0f1 (diff)
downloadhdf5-943b7f9c0276b225b93287227a8c31dc556666b7.zip
hdf5-943b7f9c0276b225b93287227a8c31dc556666b7.tar.gz
hdf5-943b7f9c0276b225b93287227a8c31dc556666b7.tar.bz2
Merge branch 'develop' into dset_ohdr_minimize
Diffstat (limited to 'src')
-rw-r--r--src/H5A.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/H5A.c b/src/H5A.c
index 0d20912..74b0148 100644
--- a/src/H5A.c
+++ b/src/H5A.c
@@ -1046,6 +1046,8 @@ H5Aget_info(hid_t attr_id, H5A_info_t *ainfo)
/* Check arguments */
if(NULL == (vol_obj = (H5VL_object_t *)H5I_object_verify(attr_id, H5I_ATTR)))
HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not an attribute")
+ if(!ainfo)
+ HGOTO_ERROR(H5E_ARGS, H5E_BADVALUE, FAIL, "attribute_info parameter cannot be NULL")
loc_params.type = H5VL_OBJECT_BY_SELF;
loc_params.obj_type = H5I_get_type(attr_id);