diff options
author | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-06-27 18:47:14 (GMT) |
---|---|---|
committer | Mohamad Chaarawi <chaarawi@hdfgroup.org> | 2013-06-27 18:47:14 (GMT) |
commit | 3885f3ebdd0b4415a7ced149b46cf895bf643a95 (patch) | |
tree | 2d7073bc46bd7cdab7ecdac40bf5c02e96a9c7e7 /src | |
parent | 59a523410bcfed4bc14be9f17d72bd9ee6fb21dd (diff) | |
download | hdf5-3885f3ebdd0b4415a7ced149b46cf895bf643a95.zip hdf5-3885f3ebdd0b4415a7ced149b46cf895bf643a95.tar.gz hdf5-3885f3ebdd0b4415a7ced149b46cf895bf643a95.tar.bz2 |
[svn-r23836] fix bug in public API of H5Tget_vol_named_type
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Tcommit.c | 4 | ||||
-rw-r--r-- | src/H5Tpublic.h | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Tcommit.c b/src/H5Tcommit.c index dca92b9..ebfe1e8 100644 --- a/src/H5Tcommit.c +++ b/src/H5Tcommit.c @@ -928,7 +928,7 @@ H5T_update_shared(H5T_t *dt) *------------------------------------------------------------------------- */ herr_t -H5Tget_vol_named_type(hid_t type_id, void *dt_obj) +H5Tget_vol_named_type(hid_t type_id, void **dt_obj) { H5T_t *type; /* datatype for operation */ herr_t ret_value = SUCCEED; /* Return value */ @@ -939,7 +939,7 @@ H5Tget_vol_named_type(hid_t type_id, void *dt_obj) if(NULL == (type = (H5T_t *)H5I_object_verify(type_id, H5I_DATATYPE))) HGOTO_ERROR(H5E_ARGS, H5E_BADTYPE, FAIL, "not a datatype") - dt_obj = H5T_get_named_type(type); + *dt_obj = H5T_get_named_type(type); done: FUNC_LEAVE_API(ret_value) diff --git a/src/H5Tpublic.h b/src/H5Tpublic.h index 7d63c5a..c3635d3 100644 --- a/src/H5Tpublic.h +++ b/src/H5Tpublic.h @@ -611,7 +611,7 @@ H5_DLL hid_t H5Tarray_create1(hid_t base_id, int ndims, const hsize_t dim[/* ndims */], const int perm[/* ndims */]); H5_DLL int H5Tget_array_dims1(hid_t type_id, hsize_t dims[], int perm[]); -H5_DLL herr_t H5Tget_vol_named_type(hid_t type_id, void *dt_obj); +H5_DLL herr_t H5Tget_vol_named_type(hid_t type_id, void **dt_obj); #endif /* H5_NO_DEPRECATED_SYMBOLS */ |