summaryrefslogtreecommitdiffstats
path: root/src/H5T.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5T.c')
-rw-r--r--src/H5T.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5T.c b/src/H5T.c
index 59ae47d..f0800bb 100644
--- a/src/H5T.c
+++ b/src/H5T.c
@@ -3459,8 +3459,7 @@ H5T_copy(const H5T_t *old_dt, H5T_copy_t method)
HGOTO_ERROR(H5E_SYM, H5E_CANTOPENOBJ, NULL, "unable to copy entry");
} /* end if */
else {
- HDmemset (&(new_dt->ent), 0, sizeof(new_dt->ent));
- new_dt->ent.header = HADDR_UNDEF;
+ H5G_ent_reset(&(new_dt->ent));
} /* end else */
/* Set return value */