summaryrefslogtreecommitdiffstats
path: root/java/src/jni/h5pImp.c
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-05-25 20:57:18 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-05-25 20:57:18 (GMT)
commitdb2da9f4b4b582d644d4b2e976040fce4dd1d665 (patch)
treeef4f9b58cd68b998b277f167e8e8b23d39e168da /java/src/jni/h5pImp.c
parent53c5b41ec2068aa45982af071a1e3c707326851f (diff)
downloadhdf5-db2da9f4b4b582d644d4b2e976040fce4dd1d665.zip
hdf5-db2da9f4b4b582d644d4b2e976040fce4dd1d665.tar.gz
hdf5-db2da9f4b4b582d644d4b2e976040fce4dd1d665.tar.bz2
Reduce warnings
Diffstat (limited to 'java/src/jni/h5pImp.c')
-rw-r--r--java/src/jni/h5pImp.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/java/src/jni/h5pImp.c b/java/src/jni/h5pImp.c
index df8b3c9..dcfcd82 100644
--- a/java/src/jni/h5pImp.c
+++ b/java/src/jni/h5pImp.c
@@ -5127,8 +5127,8 @@ Java_hdf_hdf5lib_H5_H5Pget_1mdc_1log_1options
else {
/* get the length of the filename */
H5Pget_mdc_log_options((hid_t)fapl_id, &is_enabled, NULL, &location_size, &start_on_access);
- if (location_size < 0) {
- h5badArgument(env, "H5Pget_mdc_log_options: location_size < 0");
+ if (location_size == 0) {
+ h5badArgument(env, "H5Pget_mdc_log_options: location_size is 0");
}/* end if */
else if (location_size > 0) {
location_size++; /* add extra space for the null terminator */