summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2020-07-28 00:32:01 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2020-08-11 16:48:47 (GMT)
commit98ca520f55531b0783bb1425c1fb3a125c1c40f7 (patch)
tree367dffc40931c2a2150acd1d12fc7b81a62b7c8d /src
parent0ea4639d9df2d1bffc63ce9be5366ba89a7f5a13 (diff)
downloadhdf5-98ca520f55531b0783bb1425c1fb3a125c1c40f7.zip
hdf5-98ca520f55531b0783bb1425c1fb3a125c1c40f7.tar.gz
hdf5-98ca520f55531b0783bb1425c1fb3a125c1c40f7.tar.bz2
Brings HDFFV-11027 H5S_NO_CLASS fix to 1.10 from develop
Diffstat (limited to 'src')
-rw-r--r--src/H5S.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5S.c b/src/H5S.c
index c42c952..dff8e60 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -414,6 +414,9 @@ H5S__extent_release(H5S_extent_t *extent)
extent->max = H5FL_ARR_FREE(hsize_t, extent->max);
} /* end if */
+ extent->rank = 0;
+ extent->nelem = 0;
+
FUNC_LEAVE_NOAPI(SUCCEED)
} /* end H5S__extent_release() */
@@ -1809,7 +1812,7 @@ done:
RETURNS
Non-negative on success/Negative on failure
DESCRIPTION
- This function resets the type of a dataspace back to "none" with no
+ This function resets the type of a dataspace to H5S_NULL with no
extent information stored for the dataspace.
--------------------------------------------------------------------------*/
herr_t
@@ -1829,7 +1832,7 @@ H5Sset_extent_none(hid_t space_id)
if(H5S__extent_release(&space->extent) < 0)
HGOTO_ERROR(H5E_RESOURCE, H5E_CANTDELETE, FAIL, "can't release previous dataspace")
- space->extent.type = H5S_NO_CLASS;
+ space->extent.type = H5S_NULL;
done:
FUNC_LEAVE_API(ret_value)