summaryrefslogtreecommitdiffstats
path: root/test/dtypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'test/dtypes.c')
-rw-r--r--test/dtypes.c4
1 files changed, 2 insertions, 2 deletions
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};