summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/dsets.c2
-rw-r--r--test/dtypes.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/test/dsets.c b/test/dsets.c
index 576a575..cc81319 100644
--- a/test/dsets.c
+++ b/test/dsets.c
@@ -694,7 +694,7 @@ test_compression(hid_t file)
static herr_t
test_multiopen (hid_t file)
{
- hid_t dcpl, space, dset1, dset2;
+ hid_t dcpl=-1, space=-1, dset1=-1, dset2=-1;
hsize_t cur_size[1] = {10};
static hsize_t max_size[1] = {H5S_UNLIMITED};
hsize_t tmp_size[1];
diff --git a/test/dtypes.c b/test/dtypes.c
index a2f9a76..f60efd7 100644
--- a/test/dtypes.c
+++ b/test/dtypes.c
@@ -227,7 +227,7 @@ static herr_t
test_transient (void)
{
static hsize_t ds_size[2] = {10, 20};
- hid_t file, type, space, dset, t2;
+ hid_t file=-1, type=-1, space=-1, dset=-1, t2=-1;
printf ("%-70s", "Testing transient data types");
if ((file=H5Fcreate (FILE_NAME_1, H5F_ACC_TRUNC|H5F_ACC_DEBUG,
@@ -342,7 +342,7 @@ test_transient (void)
static herr_t
test_named (void)
{
- hid_t file, type, space, dset, t2, attr1;
+ hid_t file=-1, type=-1, space=-1, dset=-1, t2=-1, attr1=-1;
herr_t status;
static hsize_t ds_size[2] = {10, 20};