diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-07-31 12:49:48 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-07-31 12:50:11 (GMT) |
commit | fc57490e02835ddfce644135e93e893f77b379d3 (patch) | |
tree | 426bee35ef84e41cb52335d8e0c768866c689b44 /tools/test/h5jam | |
parent | 50f404c887118577034c6412aeaaa1f6db2fe475 (diff) | |
download | hdf5-fc57490e02835ddfce644135e93e893f77b379d3.zip hdf5-fc57490e02835ddfce644135e93e893f77b379d3.tar.gz hdf5-fc57490e02835ddfce644135e93e893f77b379d3.tar.bz2 |
Mingw copy disabled
Diffstat (limited to 'tools/test/h5jam')
-rw-r--r-- | tools/test/h5jam/tellub.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/test/h5jam/tellub.c b/tools/test/h5jam/tellub.c index e7bb561..453444d 100644 --- a/tools/test/h5jam/tellub.c +++ b/tools/test/h5jam/tellub.c @@ -71,6 +71,7 @@ parse_command_line (int argc, const char *argv[]) case 'h': usage (h5tools_getprogname()); h5tools_setstatus(EXIT_SUCCESS); + break; case '?': default: usage (h5tools_getprogname()); @@ -105,7 +106,7 @@ int main (int argc, const char *argv[]) { char *ifname; - hid_t ifile; + hid_t ifile = H5I_INVALID_HID; hsize_t usize; htri_t testval; herr_t status; @@ -165,7 +166,8 @@ main (int argc, const char *argv[]) done: H5Pclose (plist); - H5Fclose (ifile); + if(ifile >= 0) + H5Fclose (ifile); leave(h5tools_getstatus()); } /* end main() */ |