summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-07-23 19:58:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-07-23 19:58:23 (GMT)
commit89f283e2e47814419e7e6861bfa76f56e27124d2 (patch)
tree1b2d15454e2a6138108a76508ab4327b0e0d4e80 /src/H5Odtype.c
parentd0d4aafe70b220148affc05d926ed0dd1c77986c (diff)
downloadhdf5-89f283e2e47814419e7e6861bfa76f56e27124d2.zip
hdf5-89f283e2e47814419e7e6861bfa76f56e27124d2.tar.gz
hdf5-89f283e2e47814419e7e6861bfa76f56e27124d2.tar.bz2
[svn-r11146] Purpose:
Bug fix Description: If a named datatype is copied and the copy is used to create a dataset, the dataset would inadvertantly refer to the original named datatype instead of a local (possibly modified) copy of the named datatype. Solution: Fixed datatype copying routine. Platforms tested: FreeBSD 4.11 (sleipnir) Too minor to require h5committest
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index ed044c4..bf3cd1e 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -1131,8 +1131,8 @@ H5O_dtype_get_share(H5F_t UNUSED *f, const void *_mesg,
assert (sh);
if (H5F_addr_defined (dt->ent.header)) {
- if(H5T_STATE_NAMED!=dt->shared->state && H5T_STATE_OPEN!=dt->shared->state && H5T_STATE_TRANSIENT!=dt->shared->state)
- HGOTO_ERROR (H5E_ARGS, H5E_BADTYPE, FAIL, "datatype state is not valid");
+ /* If the address is defined, this had better be a named datatype */
+ HDassert (H5T_STATE_NAMED==dt->shared->state || H5T_STATE_OPEN==dt->shared->state);
sh->in_gh = FALSE;
sh->u.ent = dt->ent;