summaryrefslogtreecommitdiffstats
path: root/java
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2019-12-20 19:40:08 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2019-12-20 19:40:08 (GMT)
commit37529db25c4bb0699024a26eb6e7a8f81390892b (patch)
tree83a53f4f063353d25e8dd6a47cb2b09d7dcfea1b /java
parenta08a3eaebac031a909748db05f747cec72989f5c (diff)
downloadhdf5-37529db25c4bb0699024a26eb6e7a8f81390892b.zip
hdf5-37529db25c4bb0699024a26eb6e7a8f81390892b.tar.gz
hdf5-37529db25c4bb0699024a26eb6e7a8f81390892b.tar.bz2
HDFFV-10976,-10980 h5dump, h5ls, h5diff use new ref APIs
Diffstat (limited to 'java')
-rw-r--r--java/src/jni/h5rImp.c2
-rw-r--r--java/src/jni/h5util.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/java/src/jni/h5rImp.c b/java/src/jni/h5rImp.c
index 4ad5d5f..21ee658 100644
--- a/java/src/jni/h5rImp.c
+++ b/java/src/jni/h5rImp.c
@@ -452,7 +452,7 @@ JNIEXPORT jint JNICALL
Java_hdf_hdf5lib_H5_H5Rget_1obj_1type3
(JNIEnv *env, jclass clss, jbyteArray ref, jlong rapl_id)
{
- H5O_type_t object_info;
+ H5O_type_t object_info = -1;
jboolean isCopy;
jbyte *refBuf = NULL;
int retVal = -1;
diff --git a/java/src/jni/h5util.c b/java/src/jni/h5util.c
index 5f1bccb..5c82edc 100644
--- a/java/src/jni/h5util.c
+++ b/java/src/jni/h5util.c
@@ -1059,7 +1059,7 @@ h5str_sprintf
}
if (H5Tequal(tid, H5T_STD_REF)) {
- H5O_type_t obj_type; /* Object type */
+ H5O_type_t obj_type = -1; /* Object type */
H5R_type_t ref_type; /* Reference type */
const H5R_ref_t *ref_vp = (H5R_ref_t *)cptr;