diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 05:37:00 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2007-05-19 05:37:00 (GMT) |
commit | 3c394783e764e0b57b18c9338528e04ff2800526 (patch) | |
tree | cf68cee3862a92af0320d44cc96a41c9b21cd0f2 | |
parent | 52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (diff) | |
download | hdf5-3c394783e764e0b57b18c9338528e04ff2800526.zip hdf5-3c394783e764e0b57b18c9338528e04ff2800526.tar.gz hdf5-3c394783e764e0b57b18c9338528e04ff2800526.tar.bz2 |
[svn-r13771] Description:
Fix some more unitialized variables that were flagged by valgrind.
Tested on:
FreeBSD/32 6.2 (duty) w/valgrind
-rw-r--r-- | src/H5B2.c | 2 | ||||
-rwxr-xr-x | src/H5SM.c | 4 |
2 files changed, 5 insertions, 1 deletions
@@ -1134,7 +1134,7 @@ H5B2_modify(H5F_t *f, hid_t dxpl_id, const H5B2_class_t *type, haddr_t addr, { unsigned leaf_flags = H5AC__NO_FLAGS_SET; H5B2_leaf_t *leaf; /* Pointer to leaf node in B-tree */ - hbool_t changed; /* Whether the 'modify' callback changed the record */ + hbool_t changed = FALSE;/* Whether the 'modify' callback changed the record */ /* Lock B-tree leaf node */ if (NULL == (leaf = H5AC_protect(f, dxpl_id, H5AC_BT2_LEAF, curr_node_ptr.addr, &(curr_node_ptr.node_nrec), bt2_shared, H5AC_WRITE))) @@ -1851,6 +1851,10 @@ H5SM_get_info(const H5O_loc_t *ext_loc, H5P_genplist_t *fc_plist, hid_t dxpl_id) unsigned sohm_b2l; /* SOHM btree-to-list cutoff */ unsigned u; /* Local index variable */ + /* Portably initialize the arrays */ + HDmemset(index_flags, 0, sizeof(index_flags)); + HDmemset(minsizes, 0, sizeof(minsizes)); + /* Set SOHM info from file */ shared->sohm_addr = sohm_table.addr; shared->sohm_vers = sohm_table.version; |