diff options
author | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2017-10-13 18:49:22 (GMT) |
---|---|---|
committer | M. Scot Breitenfeld <brtnfld@hdfgroup.org> | 2017-10-13 18:49:22 (GMT) |
commit | 0683094503837dcb805edb0445ba16e79df4a836 (patch) | |
tree | 0b5dfd54fca772f76942a3f4af80aab6a4185855 /tools/src/h5repack/h5repack_main.c | |
parent | 30fc9d2c01668c4921925961c0fe5d2f6e420666 (diff) | |
parent | 0c207cd2f84021526690bcbc4e0a8a49ea4cb8a4 (diff) | |
download | hdf5-0683094503837dcb805edb0445ba16e79df4a836.zip hdf5-0683094503837dcb805edb0445ba16e79df4a836.tar.gz hdf5-0683094503837dcb805edb0445ba16e79df4a836.tar.bz2 |
Merge branch 'develop' into multi_rd_wd_coll_io_merge
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; |