summaryrefslogtreecommitdiffstats
path: root/test/trefer.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1999-06-07 18:19:30 (GMT)
committerRobb Matzke <matzke@llnl.gov>1999-06-07 18:19:30 (GMT)
commit6881c423a13ae1e7dbf73f1b6fc02d91c71e5947 (patch)
treec711609f726a9b33b383529cf75a1d28efdc56c8 /test/trefer.c
parentea779932661939d403495d867dc492f7fe981f02 (diff)
downloadhdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.zip
hdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.tar.gz
hdf5-6881c423a13ae1e7dbf73f1b6fc02d91c71e5947.tar.bz2
[svn-r1309] Changes since 19990607
---------------------- ./tools/h5tools.c Finished code which prints references (object and dataset region). Patrick, if you tell me how h5dump should (or might want to) print references I can make some changes to support various formats... You can try it out with: cd test env HDF5_NOCLEANUP=yes ./testhdf5 ../tools/h5ls -dvr trefer1.h5 ../tools/h5ls -dvr trefer2.h5 (run h5ls with no arguments if you forgot what the switches do) ./test/trefer.c Call calloc instead of malloc in one place to prevent uninitialized data from being written into the file.
Diffstat (limited to 'test/trefer.c')
-rw-r--r--test/trefer.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/trefer.c b/test/trefer.c
index 651557f..bb27695 100644
--- a/test/trefer.c
+++ b/test/trefer.c
@@ -316,7 +316,7 @@ test_reference_region(void)
MESSAGE(5, ("Testing Dataset Region Reference Functions\n"));
/* Allocate write & read buffers */
- wbuf=malloc(sizeof(hdset_reg_ref_t)*SPACE1_DIM1);
+ wbuf=calloc(sizeof(hdset_reg_ref_t)*SPACE1_DIM1);
rbuf=malloc(sizeof(hdset_reg_ref_t)*SPACE1_DIM1);
dwbuf=malloc(sizeof(uint8_t)*SPACE2_DIM1*SPACE2_DIM2);
drbuf=calloc(sizeof(uint8_t),SPACE2_DIM1*SPACE2_DIM2);