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 fe54afb..ebdbbfb 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -1367,6 +1367,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 */