summaryrefslogtreecommitdiffstats
path: root/src/H5Gent.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2005-08-29 05:36:16 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2005-08-29 05:36:16 (GMT)
commite1747e456cf5605faeaab199cfbb3e72dca6cd40 (patch)
tree250395108e569cbcea9e749ab73ee90dd58b0234 /src/H5Gent.c
parentfefbe61aca1a42e716e900be7af5b382be5e19c1 (diff)
downloadhdf5-e1747e456cf5605faeaab199cfbb3e72dca6cd40.zip
hdf5-e1747e456cf5605faeaab199cfbb3e72dca6cd40.tar.gz
hdf5-e1747e456cf5605faeaab199cfbb3e72dca6cd40.tar.bz2
[svn-r11307] Purpose:
Code cleanup Description: Clean up internals of group creation & iteration code. Platforms tested: FreeBSD 4.11 (sleipnir) Mac OS X (nile) Too minor to require h5committest
Diffstat (limited to 'src/H5Gent.c')
-rw-r--r--src/H5Gent.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/src/H5Gent.c b/src/H5Gent.c
index ffc7a52..bcc7895 100644
--- a/src/H5Gent.c
+++ b/src/H5Gent.c
@@ -377,7 +377,8 @@ H5G_ent_encode(H5F_t *f, uint8_t **pp, const H5G_entry_t *ent)
* previous value in the destination.
* H5G_COPY_SHALLOW - Copy all the fields from the source
* to the destination, including the user path and
- * canonical path.
+ * canonical path. (Destination "takes ownership" of
+ * user and canonical paths)
* H5G_COPY_DEEP - Copy all the fields from the source to
* the destination, deep copying the user and canonical
* paths.
@@ -416,8 +417,10 @@ H5G_ent_copy(H5G_entry_t *dst, const H5G_entry_t *src, H5G_ent_copy_depth_t dept
dst->user_path_r=NULL;
dst->canon_path_r=NULL;
} else if(depth==H5G_COPY_SHALLOW) {
+#ifndef NDEBUG
/* Discarding 'const' qualifier OK - QAK */
- H5G_ent_reset(src);
+ H5G_ent_reset((H5G_entry_t *)src);
+#endif /* NDEBUG */
} /* end if */
FUNC_LEAVE_NOAPI(SUCCEED);