summaryrefslogtreecommitdiffstats
path: root/src/H5I.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2002-10-14 20:08:23 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2002-10-14 20:08:23 (GMT)
commit1e231d3283e9124cf53d28116b80fa4f8f20697e (patch)
tree31789f7c81a5e9a84aa4fa3acf68190d986b313b /src/H5I.c
parent92cfe70bb653ff2e5fca1063723749aa6f8bdaf5 (diff)
downloadhdf5-1e231d3283e9124cf53d28116b80fa4f8f20697e.zip
hdf5-1e231d3283e9124cf53d28116b80fa4f8f20697e.tar.gz
hdf5-1e231d3283e9124cf53d28116b80fa4f8f20697e.tar.bz2
[svn-r5995] Purpose:
Code cleanup/Bug Fix Description: Re-do the ID->name code again, taking into account many more weird and wonderful special cases stumbled across during the last set of test writing. Platforms tested: FreeBSD 4.6 (sleipnir) w and w/o parallel Linux 2.2.x (eirene) w/FORTRAN & C++ Solaris 2.7 (arabica) w/FORTRAN IRIX64 6.5 (modi4) w/FORTRAN & parallel
Diffstat (limited to 'src/H5I.c')
-rw-r--r--src/H5I.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5I.c b/src/H5I.c
index f04914a..65d7a90 100644
--- a/src/H5I.c
+++ b/src/H5I.c
@@ -1156,11 +1156,11 @@ H5Iget_name(hid_t id, char *name/*out*/, size_t size)
/* get symbol table entry */
if(NULL!=(ent = H5G_loc(id))) {
- if (ent->name != NULL) {
- len = HDstrlen(ent->name);
+ if (ent->user_path != NULL && ent->user_path_hidden==0) {
+ len = HDstrlen(ent->user_path);
if(name) {
- HDstrncpy(name, ent->name, MIN(len+1,size));
+ HDstrncpy(name, ent->user_path, MIN(len+1,size));
if(len >= size)
name[size-1]='\0';
} /* end if */