summaryrefslogtreecommitdiffstats
path: root/test/tselect.c
diff options
context:
space:
mode:
authorHDF Rational <hdfrat@ncsa.uiuc.edu>2001-10-05 22:30:27 (GMT)
committerHDF Rational <hdfrat@ncsa.uiuc.edu>2001-10-05 22:30:27 (GMT)
commit7e811fe46049124ee889235b58e20de6765b2964 (patch)
treedc519ac53309c705fee4004726e9476c333084d1 /test/tselect.c
parentd4df0d40dc37b20d8ad486dbaa264106ac53fbb8 (diff)
downloadhdf5-7e811fe46049124ee889235b58e20de6765b2964.zip
hdf5-7e811fe46049124ee889235b58e20de6765b2964.tar.gz
hdf5-7e811fe46049124ee889235b58e20de6765b2964.tar.bz2
[svn-r4528] Purpose:
Code cleanup Description: Purify detected an uninitialized memory read in test data. Solution: Corrected parameters for initializing data array so entire array is initialized. Platforms tested: Solaris 2.7 (arabica)
Diffstat (limited to 'test/tselect.c')
-rw-r--r--test/tselect.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/tselect.c b/test/tselect.c
index d0d889d..6a9d8d1 100644
--- a/test/tselect.c
+++ b/test/tselect.c
@@ -586,7 +586,7 @@ test_select_all(hid_t xfer_plist)
/* Initialize write buffer */
for(i=0, tbuf=wbuf; i<SPACE4_DIM1; i++)
for(j=0; j<SPACE4_DIM2; j++)
- for(k=0; k<SPACE4_DIM2; k++)
+ for(k=0; k<SPACE4_DIM3; k++)
*tbuf++=(uint8_t)(((i*SPACE4_DIM2)+j)*SPACE4_DIM3)+k;
/* Create file */
@@ -2783,7 +2783,7 @@ test_select_hyper_union_random_5d(hid_t read_plist)
for(k=0; k<SPACE5_DIM3; k++)
for(l=0; l<SPACE5_DIM4; l++)
for(m=0; m<SPACE5_DIM5; m++)
- *tbuf++=(int)(((((((i*SPACE4_DIM2)+j)*SPACE4_DIM3)+k)*SPACE5_DIM4)+l)*SPACE5_DIM5)+m;
+ *tbuf++=(int)(((((((i*SPACE5_DIM2)+j)*SPACE5_DIM3)+k)*SPACE5_DIM4)+l)*SPACE5_DIM5)+m;
/* Create file */
fid1 = H5Fcreate(FILENAME, H5F_ACC_TRUNC, H5P_DEFAULT, H5P_DEFAULT);