From 390a4296b48d9a0feadb51b92e24cb07bf778b6a Mon Sep 17 00:00:00 2001 From: Achim Gsell Date: Tue, 8 Sep 2015 20:45:27 +0200 Subject: [PATCH] src/h5core/h5_hdf5.c - hdf5_get_name_of_dataset_by_idx(): bugfix, return H5_NOK, if dataset are in step --- src/h5core/h5_hdf5.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/h5core/h5_hdf5.c b/src/h5core/h5_hdf5.c index 3c12c44..cfac2e6 100644 --- a/src/h5core/h5_hdf5.c +++ b/src/h5core/h5_hdf5.c @@ -359,6 +359,8 @@ hdf5_get_name_of_dataset_by_idx ( (long unsigned int)idx, hdf5_get_objname (loc_id))); } + if (op_data.cnt < 0) + HDF5_WRAPPER_LEAVE (H5_NOK); HDF5_WRAPPER_RETURN (H5_SUCCESS); }