diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2019-12-20 19:23:48 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:20:22 (GMT) |
commit | 972c57f7692b2e362e2665196fcbcf17524e7d01 (patch) | |
tree | 4440d719467cd03b9c708fe9efb1cfc3afe33a1b /tools/lib/h5diff_array.c | |
parent | e5cb404bb2009d19e853fe0c71ce7c24c0033ccc (diff) | |
download | hdf5-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/lib/h5diff_array.c')
-rw-r--r-- | tools/lib/h5diff_array.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/lib/h5diff_array.c b/tools/lib/h5diff_array.c index 637cfa8..ef13da0 100644 --- a/tools/lib/h5diff_array.c +++ b/tools/lib/h5diff_array.c @@ -753,8 +753,8 @@ static hsize_t diff_datum( hid_t region2_id = -1; H5R_ref_t *ref1_buf = (const H5R_ref_t *)_mem1; H5R_ref_t *ref2_buf = (const H5R_ref_t *)_mem2; - H5O_type_t obj1_type; /* Object type */ - H5O_type_t obj2_type; /* Object type */ + H5O_type_t obj1_type = -1; /* Object type */ + H5O_type_t obj2_type = -1; /* Object type */ H5R_type_t ref_type; /* Reference type */ ref_type = H5Rget_type(ref1_buf); |