diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-23 19:58:13 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2005-07-23 19:58:13 (GMT) |
commit | c92ac941072e08b5e1196edac3dd98983b9def5e (patch) | |
tree | 243cbccc1628e3b97ccc16a6ffd42d99689379c0 /src/H5Odtype.c | |
parent | 34bd25f361f81efc396314528f1824fe63af494e (diff) | |
download | hdf5-c92ac941072e08b5e1196edac3dd98983b9def5e.zip hdf5-c92ac941072e08b5e1196edac3dd98983b9def5e.tar.gz hdf5-c92ac941072e08b5e1196edac3dd98983b9def5e.tar.bz2 |
[svn-r11145] 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.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c index 646a9b1..0ab8bc5 100644 --- a/src/H5Odtype.c +++ b/src/H5Odtype.c @@ -1140,8 +1140,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; |