mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-23 16:20:57 +08:00
Fix missing option and incorrect close
This commit is contained in:
parent
6b60b95dbb
commit
8a2a500fef
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user