summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2008-08-19 19:42:11 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2008-08-19 19:42:11 (GMT)
commit7637f1b521d6f70dbdeb57588cfe79d929d37f98 (patch)
treec9a32f4c13864d8248bdda956260bc29f1a6bf27 /src
parent4b141cbc6a55a02b3191db75ef40450d4bc9d92d (diff)
downloadhdf5-7637f1b521d6f70dbdeb57588cfe79d929d37f98.zip
hdf5-7637f1b521d6f70dbdeb57588cfe79d929d37f98.tar.gz
hdf5-7637f1b521d6f70dbdeb57588cfe79d929d37f98.tar.bz2
[svn-r15489] Description:
Bring rev. 15488 back from trunk: Fix bug where library could core dump when an invalid location ID was passed to H5Giterate() (and add test for this case). Tested on: Mac OS X/32 10.5.4 (amazon) Too minor to require h5committest
Diffstat (limited to 'src')
-rw-r--r--src/H5G.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5G.c b/src/H5G.c
index 9a40f22..8387c3f 100644
--- a/src/H5G.c
+++ b/src/H5G.c
@@ -1649,7 +1649,7 @@ H5G_iterate(hid_t loc_id, const char *group_name,
{
H5G_loc_t loc; /* Location of parent for group */
hid_t gid = -1; /* ID of group to iterate over */
- H5G_t *grp; /* Pointer to group data structure to iterate over */
+ H5G_t *grp = NULL; /* Pointer to group data structure to iterate over */
H5G_iter_appcall_ud_t udata; /* User data for callback */
herr_t ret_value; /* Return value */