summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2017-11-13 19:43:32 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2017-11-15 17:04:28 (GMT)
commite6224c7d8f5b3193561d1058c5ca0cfc3dab2dc8 (patch)
tree12d2042b983760c20af5caf12cbaee5b3ee94f37 /test
parentc03f326f31c0be37b4d96ea67ac12c7ed9b37b13 (diff)
downloadhdf5-e6224c7d8f5b3193561d1058c5ca0cfc3dab2dc8.zip
hdf5-e6224c7d8f5b3193561d1058c5ca0cfc3dab2dc8.tar.gz
hdf5-e6224c7d8f5b3193561d1058c5ca0cfc3dab2dc8.tar.bz2
Initialize hid_t variables in test_Attr_bug9.
Diffstat (limited to 'test')
-rw-r--r--test/tattr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/test/tattr.c b/test/tattr.c
index 5b00edc..5eaa882 100644
--- a/test/tattr.c
+++ b/test/tattr.c
@@ -10595,10 +10595,10 @@ test_attr_bug8(hid_t fcpl, hid_t fapl)
static void
test_attr_bug9(hid_t fcpl, hid_t fapl)
{
- hid_t fid; /* File ID */
- hid_t gid; /* Group ID */
- hid_t aid; /* Attribute ID */
- hid_t sid; /* Dataspace ID */
+ hid_t fid = -1; /* File ID */
+ hid_t gid = -1; /* Group ID */
+ hid_t aid = -1; /* Attribute ID */
+ hid_t sid = -1; /* Dataspace ID */
hsize_t dims[1] = {32768}; /* Attribute dimensions */
int create_link; /* Whether to create a soft link */
unsigned max_compact; /* Setting from fcpl */