summaryrefslogtreecommitdiffstats
path: root/src/H5Gnode.c
diff options
context:
space:
mode:
authorRobb Matzke <matzke@llnl.gov>1997-09-19 18:11:56 (GMT)
committerRobb Matzke <matzke@llnl.gov>1997-09-19 18:11:56 (GMT)
commitc956e7e73a46009081b9c3e0a1eac003829a884a (patch)
treebc6ed8914886bcb67731397222d90991ee46cf7a /src/H5Gnode.c
parent25d866e9b433142c38fa6c4c8d3cad5e00d46163 (diff)
downloadhdf5-c956e7e73a46009081b9c3e0a1eac003829a884a.zip
hdf5-c956e7e73a46009081b9c3e0a1eac003829a884a.tar.gz
hdf5-c956e7e73a46009081b9c3e0a1eac003829a884a.tar.bz2
[svn-r101] Fixed uninitialized memory read.
Diffstat (limited to 'src/H5Gnode.c')
-rw-r--r--src/H5Gnode.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/H5Gnode.c b/src/H5Gnode.c
index 0729a78..aa3175c 100644
--- a/src/H5Gnode.c
+++ b/src/H5Gnode.c
@@ -382,7 +382,7 @@ H5G_node_load (hdf5_file_t *f, haddr_t addr, void *_udata)
H5G_node_t *sym = NULL;
size_t size = 0;
uint8 *buf = NULL, *p = NULL;
- H5G_entry_t *self = NULL;
+ H5G_ac_ud1_t *ac_udata = (H5G_ac_ud1_t*)_udata;
H5G_node_t *ret_value = NULL; /*for error handling*/
FUNC_ENTER (H5G_node_load, NULL, NULL);
@@ -392,8 +392,7 @@ H5G_node_load (hdf5_file_t *f, haddr_t addr, void *_udata)
*/
assert (f);
assert (addr>=0);
- assert (_udata);
- self = (H5G_entry_t*)_udata;
+ assert (ac_udata);
/*
* Initialize variables.
@@ -431,7 +430,7 @@ H5G_node_load (hdf5_file_t *f, haddr_t addr, void *_udata)
buf = H5MM_xfree (buf);
/* shadows */
- if (H5G_shadow_assoc_node (f, sym, self)<0) {
+ if (H5G_shadow_assoc_node (f, sym, ac_udata)<0) {
HGOTO_ERROR (H5E_SYM, H5E_CANTLOAD, NULL);
}