summaryrefslogtreecommitdiffstats
path: root/src/H5D.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5D.c')
-rw-r--r--src/H5D.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5D.c b/src/H5D.c
index 2f80c2a..fea42af 100644
--- a/src/H5D.c
+++ b/src/H5D.c
@@ -1144,13 +1144,11 @@ printf("%s: check 0.5\n",FUNC);
printf("%s: check 1.0\n",FUNC);
#endif /* QAK */
if (0==efl->nused) {
- if (H5F_arr_create(f, &(new_dset->layout)) < 0) {
- HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL,
- "unable to initialize storage");
- }
- } else {
+ if (H5F_arr_create(f, &(new_dset->layout)) < 0)
+ HGOTO_ERROR(H5E_DATASET, H5E_CANTINIT, NULL, "unable to initialize storage");
+ } /* end if */
+ else
new_dset->layout.addr = HADDR_UNDEF;
- }
#ifdef QAK
printf("%s: check 2.0\n",FUNC);