diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2020-07-30 19:53:08 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2020-07-30 19:53:08 (GMT) |
commit | 0731cf7e0e5134c2da969ce07ff00578c7dd4648 (patch) | |
tree | cd7cb25c76d5bc2d6adec0a119c3eea59fedff7c /tools/test/h5jam | |
parent | 617d269ceb3dda4f504ac48e3dd618d31b4b3fd8 (diff) | |
download | hdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.zip hdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.tar.gz hdf5-0731cf7e0e5134c2da969ce07ff00578c7dd4648.tar.bz2 |
More warnings reduction
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 1cdd289..dbd2e69 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() */ |