From 4b3875ad58a9329691acbff4e3193131d3b6f539 Mon Sep 17 00:00:00 2001 From: HDF Rational Date: Fri, 5 Oct 2001 17:27:58 -0500 Subject: [PATCH] [svn-r4526] Purpose: Code cleanup Description: Purify detected uninitialized memory being read. Solution: Initialization array before writing to disk. Platforms tested: Solaris 2.7 (arabica) --- test/tfile.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/tfile.c b/test/tfile.c index f5247a9056..d3d5b871fb 100644 --- a/test/tfile.c +++ b/test/tfile.c @@ -175,6 +175,7 @@ test_file_create(void) hid_t dataset_id, dataspace_id; /* identifiers */ hsize_t dims[F2_RANK]; int data[F2_DIM0][F2_DIM1]; + unsigned i,j; /* Create the data space for the dataset. */ dims[0] = F2_DIM0; @@ -186,6 +187,10 @@ test_file_create(void) dataset_id = H5Dcreate(fid2, "/dset", H5T_NATIVE_INT, dataspace_id, H5P_DEFAULT); CHECK(dataset_id, FAIL, "H5Dcreate"); + for(i=0; i