diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-09-24 19:48:52 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2019-09-24 19:49:37 (GMT) |
commit | 8a2a500fef227e4f813f0059b365869268354048 (patch) | |
tree | 84d43faab9e5048510ff9ad3f705067f5c148965 /tools | |
parent | 6b60b95dbbc6d8facc723a6debae35227ec43d65 (diff) | |
download | hdf5-8a2a500fef227e4f813f0059b365869268354048.zip hdf5-8a2a500fef227e4f813f0059b365869268354048.tar.gz hdf5-8a2a500fef227e4f813f0059b365869268354048.tar.bz2 |
Fix missing option and incorrect close
Diffstat (limited to 'tools')
-rw-r--r-- | tools/src/h5stat/h5stat.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/src/h5stat/h5stat.c b/tools/src/h5stat/h5stat.c index 9528d2c..3eea368 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'}, @@ -2014,7 +2014,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); } |