summaryrefslogtreecommitdiffstats
path: root/tools/src/h5ls
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-20 19:23:48 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:22 (GMT)
commit972c57f7692b2e362e2665196fcbcf17524e7d01 (patch)
tree4440d719467cd03b9c708fe9efb1cfc3afe33a1b /tools/src/h5ls
parente5cb404bb2009d19e853fe0c71ce7c24c0033ccc (diff)
downloadhdf5-972c57f7692b2e362e2665196fcbcf17524e7d01.zip
hdf5-972c57f7692b2e362e2665196fcbcf17524e7d01.tar.gz
hdf5-972c57f7692b2e362e2665196fcbcf17524e7d01.tar.bz2
HDFFV-10976,-10980 Init obj_type before calling H5Rget_obj_type3
Diffstat (limited to 'tools/src/h5ls')
-rw-r--r--tools/src/h5ls/h5ls.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/src/h5ls/h5ls.c b/tools/src/h5ls/h5ls.c
index 7342090..4a9f438 100644
--- a/tools/src/h5ls/h5ls.c
+++ b/tools/src/h5ls/h5ls.c
@@ -1316,7 +1316,7 @@ dump_reference(FILE *stream, const h5tool_format_t *info, h5tools_context_t *ctx
HDmemset(&buffer, 0, sizeof(h5tools_str_t));
for(i = 0; i < ndims; i++, datactx.cur_elmt++, elmt_counter++) {
- H5O_type_t obj_type; /* Object type */
+ H5O_type_t obj_type = -1; /* Object type */
H5R_type_t ref_type; /* Reference type */
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "reference loop:%d with curr_pos=%ld", i, curr_pos);