summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-12 23:25:49 (GMT)
committerVailin Choi <vchoi@jam.ad.hdfgroup.org>2018-07-12 23:25:49 (GMT)
commit92bf81a0fbad8e263c1e0d3c5791f49b78046afb (patch)
tree5e4d43ce6e3bd409a6c5fa51d8510e70230b108a /tools
parentd1f8ac331222351a63147ab54271ac9d5b271f0b (diff)
downloadhdf5-92bf81a0fbad8e263c1e0d3c5791f49b78046afb.zip
hdf5-92bf81a0fbad8e263c1e0d3c5791f49b78046afb.tar.gz
hdf5-92bf81a0fbad8e263c1e0d3c5791f49b78046afb.tar.bz2
Changes based on feedback from pull request.
Diffstat (limited to 'tools')
-rw-r--r--tools/test/h5dump/h5dumpgentest.c4
-rw-r--r--tools/test/h5stat/h5stat_gentest.c1
2 files changed, 2 insertions, 3 deletions
diff --git a/tools/test/h5dump/h5dumpgentest.c b/tools/test/h5dump/h5dumpgentest.c
index f34d479..9e9f6f1 100644
--- a/tools/test/h5dump/h5dumpgentest.c
+++ b/tools/test/h5dump/h5dumpgentest.c
@@ -10494,8 +10494,8 @@ gent_err_attr_dspace()
{
hid_t fid = -1; /* File identifier */
hid_t fcpl = -1; /* File access property list */
- hid_t sid; /* Dataspace identifier */
- hid_t aid; /* Attribute identifier */
+ hid_t sid = -1; /* Dataspace identifier */
+ hid_t aid = -1; /* Attribute identifier */
hsize_t dims = 2; /* Dimensino size */
int wdata[2] = {7, 42}; /* The buffer to write */
int fd = -1; /* The file descriptor */
diff --git a/tools/test/h5stat/h5stat_gentest.c b/tools/test/h5stat/h5stat_gentest.c
index 01206dd..2daf24b 100644
--- a/tools/test/h5stat/h5stat_gentest.c
+++ b/tools/test/h5stat/h5stat_gentest.c
@@ -455,7 +455,6 @@ static void
gen_err_refcount(const char *fname)
{
hid_t fid = -1; /* File identifier */
- hid_t fapl = -1; /* File access property list */
hid_t sid = -1; /* Dataspace message */
hid_t did = -1; /* Dataset identifier */
hid_t gid = -1; /* Group identifier */