summaryrefslogtreecommitdiffstats
path: root/src/H5Sselect.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>1998-07-15 21:23:25 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>1998-07-15 21:23:25 (GMT)
commitc40c53d0af09a8453df6d1a46f37de593d23f0d0 (patch)
treeb28dc7838e2a7738402d7ebad9cff011abbca0cb /src/H5Sselect.c
parent077d7c8c864c5452911117ee6b97c855487ff4cd (diff)
downloadhdf5-c40c53d0af09a8453df6d1a46f37de593d23f0d0.zip
hdf5-c40c53d0af09a8453df6d1a46f37de593d23f0d0.tar.gz
hdf5-c40c53d0af09a8453df6d1a46f37de593d23f0d0.tar.bz2
[svn-r512] Tracked down some problems with the number of dimensions used for point/element
selections and also fixed part of the problem with scalar dataspaces being written/read from the file.
Diffstat (limited to 'src/H5Sselect.c')
-rw-r--r--src/H5Sselect.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/H5Sselect.c b/src/H5Sselect.c
index 28197a8..c8ddd4b 100644
--- a/src/H5Sselect.c
+++ b/src/H5Sselect.c
@@ -125,7 +125,7 @@ H5S_select_copy (H5S_t *dst, const H5S_t *src)
herr_t
H5S_select_release (H5S_t *space)
{
- herr_t ret_value; /* return value */
+ herr_t ret_value=SUCCEED; /* return value */
FUNC_ENTER (H5S_select_release, FAIL);
@@ -185,8 +185,8 @@ H5Sselect_hyperslab (hid_t spaceid, H5S_seloper_t op,
const hsize_t *_block)
{
H5S_t *space = NULL; /* Dataspace to modify selection of */
- hsize_t *stride, /* Stride array */
- *block; /* Block size array */
+ hsize_t *stride, /* Stride array */
+ *block=NULL; /* Block size array */
uintn contig; /* whether selection is contiguous or not */
int i; /* Counters */
herr_t ret_value=FAIL; /* return value */
@@ -506,7 +506,7 @@ H5S_select_npoints (const H5S_t *space)
herr_t
H5S_sel_iter_release (const H5S_t *space, H5S_sel_iter_t *sel_iter)
{
- herr_t ret_value; /* Return value */
+ herr_t ret_value=SUCCEED; /* Return value */
FUNC_ENTER (H5S_sel_iter_release, FAIL);