diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2008-08-19 19:37:35 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2008-08-19 19:37:35 (GMT) |
commit | a1f3523478a1ae83db99bae92b9d677915abfc48 (patch) | |
tree | 14ddbe8dce3a54d1b82eb738431373928aed1021 /src/H5G.c | |
parent | a59d91d19251163b0e9cfeb351f8a069d6e6fd64 (diff) | |
download | hdf5-a1f3523478a1ae83db99bae92b9d677915abfc48.zip hdf5-a1f3523478a1ae83db99bae92b9d677915abfc48.tar.gz hdf5-a1f3523478a1ae83db99bae92b9d677915abfc48.tar.bz2 |
[svn-r15488] Description:
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/H5G.c')
-rw-r--r-- | src/H5G.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 */ |