summaryrefslogtreecommitdiffstats
path: root/tools/h5stat/h5stat_gentest.c
diff options
context:
space:
mode:
authorlrknox <lrknox>2017-05-20 02:32:43 (GMT)
committerlrknox <lrknox>2017-05-20 02:32:43 (GMT)
commit3a43f7af3eaf807fbdf4cf26c10eadb67903b4a8 (patch)
treea9af55e96791ecc7845a67a5b2ec6e667a24dd12 /tools/h5stat/h5stat_gentest.c
parent197b461bceee6b066ba7560766644ad2a26c361c (diff)
parentd2db9140b298cf4ffa75255743a709a8b5362135 (diff)
downloadhdf5-3a43f7af3eaf807fbdf4cf26c10eadb67903b4a8.zip
hdf5-3a43f7af3eaf807fbdf4cf26c10eadb67903b4a8.tar.gz
hdf5-3a43f7af3eaf807fbdf4cf26c10eadb67903b4a8.tar.bz2
Merge branch 'hdf5_1_8' of https://bitbucket.hdfgroup.org/scm/~lrknox/hdf5_lrk into hdf5_1_8
Diffstat (limited to 'tools/h5stat/h5stat_gentest.c')
-rw-r--r--tools/h5stat/h5stat_gentest.c16
1 files changed, 7 insertions, 9 deletions
diff --git a/tools/h5stat/h5stat_gentest.c b/tools/h5stat/h5stat_gentest.c
index 37a66cd..42e352e 100644
--- a/tools/h5stat/h5stat_gentest.c
+++ b/tools/h5stat/h5stat_gentest.c
@@ -41,18 +41,17 @@
/*
* Generate HDF5 file with latest format with
* NUM_GRPS groups and NUM_ATTRS attributes for the dataset
- *
*/
static void
gen_newgrat_file(const char *fname)
{
- hid_t fapl; /* File access property */
- hid_t fid; /* File id */
- hid_t gid; /* Group id */
- hid_t tid; /* Datatype id */
- hid_t sid; /* Dataspace id */
- hid_t attr_id; /* Attribute id */
- hid_t did; /* Dataset id */
+ hid_t fapl = -1; /* File access property */
+ hid_t fid = -1; /* File id */
+ hid_t gid = -1; /* Group id */
+ hid_t tid = -1; /* Datatype id */
+ hid_t sid = -1; /* Dataspace id */
+ hid_t attr_id = -1; /* Attribute id */
+ hid_t did = -1; /* Dataset id */
char name[30]; /* Group name */
char attrname[30]; /* Attribute name */
int i; /* Local index variable */
@@ -118,7 +117,6 @@ error:
H5Gclose(gid);
H5Fclose(fid);
} H5E_END_TRY;
-
} /* gen_newgrat_file() */
/*