summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Fortner <nfortne2@hdfgroup.org>2017-05-03 20:45:05 (GMT)
committerNeil Fortner <nfortne2@hdfgroup.org>2017-05-03 20:45:05 (GMT)
commitc9b64ca0f990f0fe4f8c9026c8de774fb8b63056 (patch)
tree9deda11fec54389a3c2606f7572f64998901d520
parent718c05b76a18d12c1be57bb1880eea27985f2634 (diff)
downloadhdf5-c9b64ca0f990f0fe4f8c9026c8de774fb8b63056.zip
hdf5-c9b64ca0f990f0fe4f8c9026c8de774fb8b63056.tar.gz
hdf5-c9b64ca0f990f0fe4f8c9026c8de774fb8b63056.tar.bz2
Make idx parameter optional in H5L/Aiterate*
-rw-r--r--src/H5VLdaosm.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/H5VLdaosm.c b/src/H5VLdaosm.c
index 1ea5c1e..f351f25 100644
--- a/src/H5VLdaosm.c
+++ b/src/H5VLdaosm.c
@@ -2204,7 +2204,7 @@ H5VL_daosm_link_specific(void *_item, H5VL_loc_params_t loc_params,
uint32_t i;
/* Iteration restart not supported */
- if(*idx != 0)
+ if(idx && (*idx != 0))
HGOTO_ERROR(H5E_SYM, H5E_UNSUPPORTED, FAIL, "iteration restart not supported (must start from 0)")
/* Ordered iteration not supported */
@@ -2301,7 +2301,8 @@ H5VL_daosm_link_specific(void *_item, H5VL_loc_params_t loc_params,
p[kds[i].kd_key_len] = tmp_char;
/* Advance idx */
- (*idx)++;
+ if(idx)
+ (*idx)++;
} /* end if */
/* Advance to next akey */
@@ -5467,7 +5468,7 @@ H5VL_daosm_attribute_specific(void *_item, H5VL_loc_params_t loc_params,
uint32_t i;
/* Iteration restart not supported */
- if(*idx != 0)
+ if(idx && (*idx != 0))
HGOTO_ERROR(H5E_ATTR, H5E_UNSUPPORTED, FAIL, "iteration restart not supported (must start from 0)")
/* Ordered iteration not supported */
@@ -5580,7 +5581,8 @@ H5VL_daosm_attribute_specific(void *_item, H5VL_loc_params_t loc_params,
p[kds[i].kd_key_len] = tmp_char;
/* Advance idx */
- (*idx)++;
+ if(idx)
+ (*idx)++;
} /* end if */
/* Advance to next akey */