summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5S.c b/src/H5S.c
index dd6ff5c..771ccba 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -155,6 +155,7 @@ H5Screate_simple(int rank, const hsize_t *dims, const hsize_t *maxdims)
else /* rank==0, for scalar data space */
{
ds->type = H5S_SCALAR;
+ ds->u.simple.rank = 0;
} /* end else */
/* Register the new data space and get an ID for it */