summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/H5S.c b/src/H5S.c
index 64d508d..4c5227c 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -1351,6 +1351,9 @@ H5S_set_extent_simple (H5S_t *space, unsigned rank, const hsize_t *dims,
space->extent.max = H5FL_ARR_MALLOC(hsize_t,rank);
HDmemcpy(space->extent.max, max, sizeof(hsize_t) * rank);
} /* end if */
+ else {
+ space->extent.max = NULL;
+ }
}
/* Selection related cleanup */