summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2017-05-24 10:51:45 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2017-05-24 10:51:45 (GMT)
commite3b22b8fa45697d6f73330b33cd201c37e0335d6 (patch)
treee63a2bc51713c64ee429030d4f6b683da5318fa9 /test
parente45d97b6be684101ab2ad544fbbb3e60972b1c3e (diff)
downloadhdf5-e3b22b8fa45697d6f73330b33cd201c37e0335d6.zip
hdf5-e3b22b8fa45697d6f73330b33cd201c37e0335d6.tar.gz
hdf5-e3b22b8fa45697d6f73330b33cd201c37e0335d6.tar.bz2
Initialized IDs to -1 and minor code tidy.
Diffstat (limited to 'test')
-rw-r--r--test/swmr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/test/swmr.c b/test/swmr.c
index 399a9ec..5b50d63 100644
--- a/test/swmr.c
+++ b/test/swmr.c
@@ -116,12 +116,12 @@ static int test_multiple_same(hid_t in_fapl, hbool_t new_format);
static int
test_metadata_read_attempts(hid_t in_fapl)
{
- hid_t fapl; /* File access property list */
- hid_t file_fapl; /* The file's access property list */
- hid_t fid, fid1, fid2; /* File IDs */
- unsigned attempts; /* The # of read attempts */
- char filename[NAME_BUF_SIZE]; /* File name */
- herr_t ret; /* Generic return value */
+ hid_t fapl = -1; /* File access property list */
+ hid_t file_fapl = -1; /* The file's access property list */
+ hid_t fid = -1, fid1 = -1, fid2 = -1; /* File IDs */
+ unsigned attempts; /* The # of read attempts */
+ char filename[NAME_BUF_SIZE]; /* File name */
+ herr_t ret; /* Generic return value */
/* Output message about test being performed */
TESTING("H5Pget/set_metadata_read_attempts()");