diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/enum.c | 2 | ||||
-rw-r--r-- | test/links.c | 8 | ||||
-rw-r--r-- | test/set_extent.c | 6 | ||||
-rw-r--r-- | test/unlink.c | 4 |
4 files changed, 10 insertions, 10 deletions
diff --git a/test/enum.c b/test/enum.c index 1def5bc..83fa736 100644 --- a/test/enum.c +++ b/test/enum.c @@ -360,7 +360,7 @@ static int test_value_dsnt_exist(void) { - hid_t datatype_id; /* identifiers */ + hid_t datatype_id=(-1); /* identifiers */ int val; char nam[100]; size_t size = 100; diff --git a/test/links.c b/test/links.c index 53ba3fc..ea44764 100644 --- a/test/links.c +++ b/test/links.c @@ -105,10 +105,10 @@ mklinks(hid_t fapl) static int new_links(hid_t fapl) { - hid_t file_a, file_b; - hid_t grp1_a, grp1_b, grp2_a, grp2_b; - hid_t scalar; - hid_t dset1, dset2; + hid_t file_a, file_b=(-1); + hid_t grp1_a=(-1), grp1_b=(-1), grp2_a=(-1), grp2_b=(-1); + hid_t scalar=(-1); + hid_t dset1=(-1), dset2=(-1); char filename[1024]; static hsize_t size[1] = {1}; diff --git a/test/set_extent.c b/test/set_extent.c index 2d0c85f..7a2a9e5 100644 --- a/test/set_extent.c +++ b/test/set_extent.c @@ -28,9 +28,9 @@ int main( void ) { hid_t file_id; - hid_t dataset_id; - hid_t space_id; - hid_t plist_id; + hid_t dataset_id=(-1); + hid_t space_id=(-1); + hid_t plist_id=(-1); hsize_t dims[RANK] = { 90, 90 }; hsize_t dims_new[RANK] = { 70, 70 }; hsize_t dims_chunk[RANK] = { 20, 20 }; diff --git a/test/unlink.c b/test/unlink.c index 2cc7efb..2f4ca7b 100644 --- a/test/unlink.c +++ b/test/unlink.c @@ -298,8 +298,8 @@ test_rename(hid_t file) static int test_new_move(void) { - hid_t fapl, file_a, file_b; - hid_t grp_1, grp_2, grp_move, moved_grp; + hid_t fapl, file_a, file_b=(-1); + hid_t grp_1=(-1), grp_2=(-1), grp_move=(-1), moved_grp=(-1); char filename[1024]; TESTING("new move"); |