summaryrefslogtreecommitdiffstats
path: root/test/filenotclosed.c
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2023-09-08 23:06:23 (GMT)
committerGitHub <noreply@github.com>2023-09-08 23:06:23 (GMT)
commit117d579c326f64d09d71e28cb0135bbd16a5232e (patch)
tree384ac7e1e3b9881e6d6ab783ee0391ab7adc1f29 /test/filenotclosed.c
parent2345f901b26277f643dd91a528e4da975f4e75c1 (diff)
downloadhdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.zip
hdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.tar.gz
hdf5-117d579c326f64d09d71e28cb0135bbd16a5232e.tar.bz2
Consistent initialization of hid_t in the tests (#3521)
Diffstat (limited to 'test/filenotclosed.c')
-rw-r--r--test/filenotclosed.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/test/filenotclosed.c b/test/filenotclosed.c
index 699b9ef..48758af 100644
--- a/test/filenotclosed.c
+++ b/test/filenotclosed.c
@@ -49,11 +49,11 @@ catch_signal(int H5_ATTR_UNUSED signo)
int
main(void)
{
- hid_t fapl = -1; /* File access property lists */
- hid_t fid = -1; /* File ID */
- hid_t did = -1; /* Dataset ID */
- hid_t dcpl = -1; /* Dataset creation property list */
- hid_t sid = -1; /* Dataspace ID */
+ hid_t fapl = H5I_INVALID_HID; /* File access property lists */
+ hid_t fid = H5I_INVALID_HID; /* File ID */
+ hid_t did = H5I_INVALID_HID; /* Dataset ID */
+ hid_t dcpl = H5I_INVALID_HID; /* Dataset creation property list */
+ hid_t sid = H5I_INVALID_HID; /* Dataspace ID */
hsize_t cur_dim[1] = {5}; /* Current dimension sizes */
hsize_t max_dim[1] = {H5S_UNLIMITED}; /* Maximum dimension sizes */
hsize_t chunk_dim[1] = {10}; /* Chunk dimension sizes */