diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-10-10 19:46:59 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-10-10 19:46:59 (GMT) |
commit | f92ccce1f9134ccb06c59278075403657392ee0c (patch) | |
tree | b53e15c8cdbd76a0e9697ee146f88c0cbd97662b /tools/src/h5repack/h5repack_main.c | |
parent | bd6de98d175b8fee9e7ba6a647a380a7b4295e1b (diff) | |
download | hdf5-f92ccce1f9134ccb06c59278075403657392ee0c.zip hdf5-f92ccce1f9134ccb06c59278075403657392ee0c.tar.gz hdf5-f92ccce1f9134ccb06c59278075403657392ee0c.tar.bz2 |
HDFFV-10297 merge from develop
Diffstat (limited to 'tools/src/h5repack/h5repack_main.c')
-rw-r--r-- | tools/src/h5repack/h5repack_main.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/tools/src/h5repack/h5repack_main.c b/tools/src/h5repack/h5repack_main.c index 3860451..d34c394 100644 --- a/tools/src/h5repack/h5repack_main.c +++ b/tools/src/h5repack/h5repack_main.c @@ -428,13 +428,13 @@ int parse_command_line(int argc, const char **argv, pack_opt_t* options) while ((opt = get_option(argc, argv, s_opts, l_opts)) != EOF) { switch ((char) opt) { - /* -i for backward compability */ + /* -i for backward compatibility */ case 'i': infile = opt_arg; has_i_o = 1; break; - /* -o for backward compability */ + /* -o for backward compatibility */ case 'o': outfile = opt_arg; has_i_o = 1; @@ -695,8 +695,10 @@ int main(int argc, const char **argv) } /* initialize options */ - h5repack_init(&options, 0, FALSE); - + if (h5repack_init(&options, 0, FALSE) < 0) { + h5tools_setstatus(EXIT_FAILURE); + goto done; + } /* Initialize default indexing options */ sort_by = H5_INDEX_CRT_ORDER; |