summaryrefslogtreecommitdiffstats
path: root/src/H5Odtype.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Odtype.c')
-rw-r--r--src/H5Odtype.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5Odtype.c b/src/H5Odtype.c
index 772cac7..81ea37b 100644
--- a/src/H5Odtype.c
+++ b/src/H5Odtype.c
@@ -1108,6 +1108,9 @@ done:
*
* Modifications:
*
+ * Pedro Vicente, <pvn@ncsa.uiuc.edu> 22 Aug 2002
+ * Added `id to name' support.
+ *
*-------------------------------------------------------------------------
*/
static herr_t
@@ -1123,8 +1126,13 @@ H5O_dtype_set_share (H5F_t UNUSED *f, void *_mesg/*in,out*/,
assert (sh);
assert (!sh->in_gh);
- dt->ent = sh->u.ent;
- dt->state = H5T_STATE_NAMED;
+ dt->ent = sh->u.ent;
+
+ dt->ent.name = NULL;
+ dt->ent.old_name = NULL;
+
+ dt->state = H5T_STATE_NAMED;
+
done:
FUNC_LEAVE (ret_value);