summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorRaymond Lu <songyulu@hdfgroup.org>2004-06-11 21:06:29 (GMT)
committerRaymond Lu <songyulu@hdfgroup.org>2004-06-11 21:06:29 (GMT)
commit8735902ea3fd111e2a8924b4516b701659259cf4 (patch)
tree6fb0ca23f62d27793dc5aa0a442c43ff7ed0adde /src/H5Odtype.c
parent2a59a4ca3d1a165fd62c3a76e38f194124d00839 (diff)
downloadhdf5-8735902ea3fd111e2a8924b4516b701659259cf4.zip
hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.gz
hdf5-8735902ea3fd111e2a8924b4516b701659259cf4.tar.bz2
[svn-r8663] *** empty log message ***
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 88403ea..c2015c0 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -1111,7 +1111,9 @@ H5O_dtype_get_share(H5F_t UNUSED *f, const void *_mesg,
assert (sh);
if (H5F_addr_defined (dt->ent.header)) {
- assert (H5T_STATE_NAMED==dt->state || H5T_STATE_OPEN==dt->state);
+ if(H5T_STATE_NAMED!=dt->state && H5T_STATE_OPEN!=dt->state && H5T_STATE_TRANSIENT!=dt->state)
+ HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "datatype state is not valid");
+
sh->in_gh = FALSE;
sh->u.ent = dt->ent;
} else