summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2019-06-18 17:24:58 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2019-06-18 17:24:58 (GMT)
commit8d67b440f7d94f1b191ce154a41685bcaa90fd12 (patch)
tree5440f684e9f2bd655b2bd6ff8f65f9336c13ea2f /src
parentdaaa56de3e2f296c2bb0262129860eda75b8ac30 (diff)
downloadhdf5-8d67b440f7d94f1b191ce154a41685bcaa90fd12.zip
hdf5-8d67b440f7d94f1b191ce154a41685bcaa90fd12.tar.gz
hdf5-8d67b440f7d94f1b191ce154a41685bcaa90fd12.tar.bz2
Reset the other convenience pointer because why no
Diffstat (limited to 'src')
-rw-r--r--src/H5Shyper.c13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/H5Shyper.c b/src/H5Shyper.c
index 6d54f97..cc1f8d4 100644
--- a/src/H5Shyper.c
+++ b/src/H5Shyper.c
@@ -11306,11 +11306,11 @@ H5S__hyper_get_clip_diminfo(hsize_t start, hsize_t stride, hsize_t *count,
herr_t
H5S_hyper_clip_unlim(H5S_t *space, hsize_t clip_size)
{
- H5S_hyper_sel_t *hslab = NULL; /* Convenience pointer to hyperslab info */
- hsize_t orig_count; /* Original count in unlimited dimension */
- int orig_unlim_dim; /* Original unliminted dimension */
- H5S_hyper_dim_t *diminfo; /* Convenience pointer to diminfo.opt in unlimited dimension */
- herr_t ret_value = SUCCEED; /* Return value */
+ H5S_hyper_sel_t *hslab = NULL; /* Convenience pointer to hyperslab info */
+ hsize_t orig_count; /* Original count in unlimited dimension */
+ int orig_unlim_dim; /* Original unliminted dimension */
+ H5S_hyper_dim_t *diminfo = NULL; /* Convenience pointer to diminfo.opt in unlimited dimension */
+ herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_NOAPI(FAIL)
@@ -11342,8 +11342,9 @@ H5S_hyper_clip_unlim(H5S_t *space, hsize_t clip_size)
if(H5S_select_none(space) < 0)
HGOTO_ERROR(H5E_DATASPACE, H5E_CANTDELETE, FAIL, "can't convert selection")
- /* Reset the convenience pointer */
+ /* Reset the convenience pointers */
hslab = NULL;
+ diminfo = NULL;
} /* end if */
/* Check for single block in unlimited dimension */
else if(orig_count == (hsize_t)1) {