summaryrefslogtreecommitdiffstats
path: root/tools
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-09-24 19:49:24 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-09-24 19:49:24 (GMT)
commit8d0196a0228129d1a0a9af27c604ab4cc5cee163 (patch)
tree44c8ac69e29da522ec6c38c4c173c8265aa03136 /tools
parent922d10ff8eeab99a0cb1996a40dcfa7a85a98de9 (diff)
downloadhdf5-8d0196a0228129d1a0a9af27c604ab4cc5cee163.zip
hdf5-8d0196a0228129d1a0a9af27c604ab4cc5cee163.tar.gz
hdf5-8d0196a0228129d1a0a9af27c604ab4cc5cee163.tar.bz2
Fix missing option and incorrect close
Diffstat (limited to 'tools')
-rw-r--r--tools/src/h5stat/h5stat.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c
index 5b47481..dba15e4 100644
--- a/tools/src/h5stat/h5stat.c
+++ b/tools/src/h5stat/h5stat.c
@@ -173,7 +173,7 @@ struct handler_t {
char **obj;
};
-static const char *s_opts ="Aa:Ddm:EFfhGgl:sSTO:Vw:";
+static const char *s_opts ="Aa:Ddm:EFfhGgl:sSTO:Vw:H:";
/* e.g. "filemetadata" has to precede "file"; "groupmetadata" has to precede "group" etc. */
static struct long_options l_opts[] = {
{"help", no_arg, 'h'},
@@ -2013,7 +2013,7 @@ done:
iter_free(&iter);
if (fapl_id != H5P_DEFAULT) {
- if (0 < H5Pclose(fapl_id)) {
+ if (H5Pclose(fapl_id) < 0) {
error_msg("unable to close fapl entry\n");
h5tools_setstatus(EXIT_FAILURE);
}