summaryrefslogtreecommitdiffstats
path: root/src/H5S.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5S.c')
-rw-r--r--src/H5S.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5S.c b/src/H5S.c
index 3a46423..6e8bc8d 100644
--- a/src/H5S.c
+++ b/src/H5S.c
@@ -396,7 +396,7 @@ H5Sextent_copy (hid_t dst_id,hid_t src_id)
/* Copy */
if (H5S_extent_copy(&(dst->extent),&(src->extent))<0)
- HRETURN_ERROR(H5E_DATASPACE, H5E_CANTCOPY, NULL, "can't copy extent");
+ HRETURN_ERROR(H5E_DATASPACE, H5E_CANTCOPY, FAIL, "can't copy extent");
FUNC_LEAVE (ret_value);
}