summaryrefslogtreecommitdiffstats
path: root/fortran
diff options
context:
space:
mode:
authorScot Breitenfeld <brtnfld@hdfgroup.org>2022-02-11 12:56:33 (GMT)
committerGitHub <noreply@github.com>2022-02-11 12:56:33 (GMT)
commit7bfa873983414f98aaa3489962681b9105ccb562 (patch)
tree4fede551b460a6e851d9a37f9a9b99a9ffb18cc4 /fortran
parent0f847f30bc9e5ac8c272fc745aa7c69499455034 (diff)
downloadhdf5-7bfa873983414f98aaa3489962681b9105ccb562.zip
hdf5-7bfa873983414f98aaa3489962681b9105ccb562.tar.gz
hdf5-7bfa873983414f98aaa3489962681b9105ccb562.tar.bz2
Fixed H5Dget_storage_size_f for zero sized datasets (#1430)
* H5Lexists docs: Removed reference to 1.8.16 since the change is the 1.8.x releases, HDFFV-11289 * H5Oget_info_by_name, name can be any object, not just a group * fixed handling size 0 datasets * fixed handling size 0 datasets * format
Diffstat (limited to 'fortran')
-rw-r--r--fortran/src/H5Df.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/fortran/src/H5Df.c b/fortran/src/H5Df.c
index 5c46cb3..a780683 100644
--- a/fortran/src/H5Df.c
+++ b/fortran/src/H5Df.c
@@ -495,10 +495,10 @@ h5dget_storage_size_c(hid_t_f *dset_id, hsize_t_f *size)
c_dset_id = (hid_t)*dset_id;
c_size = H5Dget_storage_size(c_dset_id);
- if (c_size == 0)
- return ret_value;
- *size = (hsize_t_f)c_size;
- ret_value = 0;
+ if (c_size != 0) {
+ ret_value = 0;
+ }
+ *size = (hsize_t_f)c_size;
return ret_value;
}