summaryrefslogtreecommitdiffstats
path: root/src/H5Gstab.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/H5Gstab.c')
-rw-r--r--src/H5Gstab.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/H5Gstab.c b/src/H5Gstab.c
index 72c0d25..3f53464 100644
--- a/src/H5Gstab.c
+++ b/src/H5Gstab.c
@@ -225,7 +225,10 @@ H5G_stab_insert(H5G_entry_t *grp_ent, const char *name, H5G_entry_t *obj_ent)
udata.operation = H5G_OPER_INSERT;
udata.name = name;
udata.heap_addr = stab.heap_addr;
- udata.ent = *obj_ent;
+
+ /* Deep copy */
+ H5G_ent_copy(obj_ent, &udata.ent);
+
/* insert */
if (H5B_insert(grp_ent->file, H5B_SNODE, stab.btree_addr, split_ratios, &udata) < 0)