summaryrefslogtreecommitdiffstats
path: root/tools/lib
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-13 17:52:38 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2020-05-20 14:20:20 (GMT)
commit1814f0363f114f74c6b60849df81710bda34394f (patch)
tree5d11cc0c56591adbdec35027878ff24d19ca4fce /tools/lib
parent1409fcee4e27375aa888a7c3595c7dfb36c2365b (diff)
downloadhdf5-1814f0363f114f74c6b60849df81710bda34394f.zip
hdf5-1814f0363f114f74c6b60849df81710bda34394f.tar.gz
hdf5-1814f0363f114f74c6b60849df81710bda34394f.tar.bz2
Fix duplicate and varname
Diffstat (limited to 'tools/lib')
-rw-r--r--tools/lib/h5tools_dump.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/tools/lib/h5tools_dump.c b/tools/lib/h5tools_dump.c
index 491ce27..5973b02 100644
--- a/tools/lib/h5tools_dump.c
+++ b/tools/lib/h5tools_dump.c
@@ -4030,7 +4030,7 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
h5tools_render_element(stream, &outputformat, ctx, &buffer, &curr_pos, (size_t)ncols, (hsize_t)0, (hsize_t)0);
if (H5Tget_class(f_type) == H5T_REFERENCE) {
- ctx->indent_level++;
+ datactx->indent_level++;
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "reference class type");
if (!H5Tequal(f_type, H5T_STD_REF) && !H5Tequal(f_type, H5T_STD_REF_DSETREG) && !H5Tequal(f_type, H5T_STD_REF_OBJ)) {
HGOTO_DONE(SUCCEED);
@@ -4260,13 +4260,12 @@ h5tools_dump_data(FILE *stream, const h5tool_format_t *info, h5tools_context_t *
} /* end switch */
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "finished reference loop:%d",i);
- } /* end for(i = 0; i < ndims; i++, ctx->cur_elmt++, elmt_counter++) */
+ } /* end for(i = 0; i < ndims; i++, datactx->cur_elmt++, elmt_counter++) */
HDfree(ref_buf);
}
- ctx->indent_level--;
+ datactx->indent_level--;
}
else {
- h5tools_context_t datactx = *ctx; /* print context */
H5TOOLS_DEBUG(H5E_tools_min_dbg_id_g, "Print all the values");
string_dataformat = *info;
if((datactx.display_char && H5Tget_size(f_type) == 1) && (H5Tget_class(f_type) == H5T_INTEGER)) {