summaryrefslogtreecommitdiffstats
path: root/src/H5G.c
diff options
context:
space:
mode:
authorPedro Vicente Nunes <pvn@hdfgroup.org>2002-09-21 23:20:00 (GMT)
committerPedro Vicente Nunes <pvn@hdfgroup.org>2002-09-21 23:20:00 (GMT)
commit47fc4908325071261476bbdabb1be696323f9298 (patch)
treec9f56c9ea0c0f0f9ad13132fc16e3fe59d51418e /src/H5G.c
parent5487187a931fbe9f56634634188e6df9663b54b6 (diff)
downloadhdf5-47fc4908325071261476bbdabb1be696323f9298.zip
hdf5-47fc4908325071261476bbdabb1be696323f9298.tar.gz
hdf5-47fc4908325071261476bbdabb1be696323f9298.tar.bz2
[svn-r5936]
Purpose: bug fix [ i s this a bug fix? feature? ...] Description: the copy of a symbol table entry was done with a shallow copy, in H5T_copy this was causing an exception on the free call of the ID to name buffer replaced a shallow copy of a symbo l a edescribe the bug, or describe the new feature, etc] Solution: [details about the changes, algorithm, etc...] [Please as detail as you can since your own explanation is better than others guessing it from the code.] Platforms tested: windows 2000 solaris with cpp, fortran irix64, with fortran, parallel i r [machines you have tested the changed version. This is absolute important. Test it out on at least two or three different platforms such as Big-endian-32bit (SUN/IRIX), little-endian-32(LINUX) and 64-bit (IRIX64/UNICOS/DEC-ALPHA) would be good.]
Diffstat (limited to 'src/H5G.c')
-rw-r--r--src/H5G.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5G.c b/src/H5G.c
index b55b66a..96caf5f 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -79,6 +79,7 @@
#define H5F_PACKAGE /*suppress error about including H5Fpkg */
+
/* Packages needed by this file... */
#include "H5private.h"
#include "H5Aprivate.h"
@@ -1063,8 +1064,7 @@ H5G_namei(H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/,
int _nlinks = H5G_NLINKS;
const char *s = NULL;
herr_t ret_value=SUCCEED;
-
-
+
H5G_t *tmp_grp;
const char *orig_name = name;
unsigned int null_obj = obj_ent == NULL ? 1 : 0;
@@ -1148,7 +1148,7 @@ H5G_namei(H5G_entry_t *loc_ent, const char *name, const char **rest/*out*/,
/* Set flag if at least one component was found */
found_once =1;
- if (H5G_stab_find(grp_ent, H5G_comp_g, /*&tmp_obj_ent*/ obj_ent/*out*/ )<0) {
+ if (H5G_stab_find(grp_ent, H5G_comp_g, obj_ent/*out*/ )<0) {
/*
* Component was not found in the current symbol table, possibly
* because GRP_ENT isn't a symbol table.