diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-10-23 14:26:15 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-10-23 14:26:15 (GMT) |
commit | 8e2cedd066e4569bf36b530495bd2f811d95f808 (patch) | |
tree | 26a570f06f6010bff14f26bd3f22472b8ebd15e4 /tools/lib/h5tools_dump.c | |
parent | d5acbfeb9e469ada610c4efa35a225be1cc2e0c1 (diff) | |
download | hdf5-8e2cedd066e4569bf36b530495bd2f811d95f808.zip hdf5-8e2cedd066e4569bf36b530495bd2f811d95f808.tar.gz hdf5-8e2cedd066e4569bf36b530495bd2f811d95f808.tar.bz2 |
HDFFV-10297 Cleanup, Initialize variables
Diffstat (limited to 'tools/lib/h5tools_dump.c')
-rw-r--r-- | tools/lib/h5tools_dump.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c index f987296..ed7d38a 100644 --- a/tools/lib/h5tools_dump.c +++ b/tools/lib/h5tools_dump.c @@ -2888,7 +2888,7 @@ void h5tools_print_fill_value(h5tools_str_t *buffer/*in,out*/, const h5tool_format_t *info, h5tools_context_t *ctx/*in,out*/, hid_t dcpl, hid_t type_id, hid_t obj_id) { size_t size; - hid_t n_type; + hid_t n_type = -1; void *buf = NULL; n_type = H5Tget_native_type(type_id, H5T_DIR_DEFAULT); @@ -3638,7 +3638,8 @@ h5tools_dump_attribute(FILE *stream, const h5tool_format_t *info, error_msg("unable to open attribute \"%s\"\n", attr_name); } else { - hid_t type, space; + hid_t type = -1; + hid_t space = -1; ctx->indent_level++; @@ -3857,9 +3858,9 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, H5S_class_t space_type; int ndims; int i; - hid_t space; - hid_t type; - hid_t p_type; + hid_t space = -1; + hid_t type = -1; + hid_t p_type = -1; hsize_t size[64]; hsize_t alloc_size; hsize_t nelmts = 1; |