diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-01-24 22:41:45 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-01-24 22:41:45 (GMT) |
commit | d627cd29bd6e7fec75bc96b265ceab2e940ef99e (patch) | |
tree | 19547e55de42e9014544995f86e10c7ddd28c5b3 /tools/src/h5repack/h5repack_parse.c | |
parent | 6b9a7cece44820d2a81a8edd62b6632f588cc335 (diff) | |
download | hdf5-d627cd29bd6e7fec75bc96b265ceab2e940ef99e.zip hdf5-d627cd29bd6e7fec75bc96b265ceab2e940ef99e.tar.gz hdf5-d627cd29bd6e7fec75bc96b265ceab2e940ef99e.tar.bz2 |
HDFFV-10046 Fix windows parse error
Diffstat (limited to 'tools/src/h5repack/h5repack_parse.c')
-rw-r--r-- | tools/src/h5repack/h5repack_parse.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/tools/src/h5repack/h5repack_parse.c b/tools/src/h5repack/h5repack_parse.c index 004b9e4..6759169 100644 --- a/tools/src/h5repack/h5repack_parse.c +++ b/tools/src/h5repack/h5repack_parse.c @@ -47,9 +47,9 @@ obj_list_t* parse_filter(const char *str, unsigned *n_objs, filter_info_t *filt, int k, l, p, q, end_obj = -1, no_param = 0; unsigned j, n; char sobj[MAX_NC_NAME]; - char scomp[10]; - char stype[6]; - char smask[3]; + char scomp[10] = {0, 0, 0, 0, 0, 0, 0, 0, 0, 0}; + char stype[6] = {0, 0, 0, 0, 0, 0}; + char smask[3] = {0, 0, 0}; obj_list_t* obj_list = NULL; unsigned pixels_per_block; @@ -396,6 +396,7 @@ obj_list_t* parse_filter(const char *str, unsigned *n_objs, filter_info_t *filt, error_msg("invalid filter type in <%s>\n", str); HDexit(EXIT_FAILURE); } + break; } } /*i*/ |