diff options
author | Allen Byrne <byrn@hdfgroup.org> | 2017-04-25 21:54:18 (GMT) |
---|---|---|
committer | Allen Byrne <byrn@hdfgroup.org> | 2017-04-25 21:54:18 (GMT) |
commit | ce5637c6f17d8398b3db9d2fee704b1cee619996 (patch) | |
tree | 60be8895ef31aab72771ec69a7a542b2ad30bda0 /java | |
parent | ed39ad384253224e83906ae6228d3ccdb5b02633 (diff) | |
parent | c0602ab77f4bac2616604feeaf83f954126337be (diff) | |
download | hdf5-ce5637c6f17d8398b3db9d2fee704b1cee619996.zip hdf5-ce5637c6f17d8398b3db9d2fee704b1cee619996.tar.gz hdf5-ce5637c6f17d8398b3db9d2fee704b1cee619996.tar.bz2 |
Merge pull request #471 in HDFFV/hdf5 from ~BYRN/hdf5_adb:hdf5_1_10_1 to hdf5_1_10_1
* commit 'c0602ab77f4bac2616604feeaf83f954126337be':
Merge 1_10 branch to 1_10_1 HDFV10170 dyn lib changes Plugin API changes
Diffstat (limited to 'java')
-rw-r--r-- | java/src/jni/h5plImp.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/java/src/jni/h5plImp.c b/java/src/jni/h5plImp.c index 5a2d3ba..f064634 100644 --- a/java/src/jni/h5plImp.c +++ b/java/src/jni/h5plImp.c @@ -211,13 +211,11 @@ JNIEXPORT jint JNICALL Java_hdf_hdf5lib_H5_H5PLsize (JNIEnv *env, jclass clss) { - int retVal = -1; - - retVal = H5PLsize(); - if (retVal < 0) + unsigned int listsize = 0; + if (H5PLsize(&listsize) < 0) { h5libraryError(env); - - return (jint)retVal; + } + return (jint)listsize; } /* end Java_hdf_hdf5lib_H5_H5PLsize */ #ifdef __cplusplus |