summaryrefslogtreecommitdiffstats
path: root/src/H5SM.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2007-05-19 05:37:00 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2007-05-19 05:37:00 (GMT)
commit3c394783e764e0b57b18c9338528e04ff2800526 (patch)
treecf68cee3862a92af0320d44cc96a41c9b21cd0f2 /src/H5SM.c
parent52d71bcd6f19c7b0adb6544f4c79df94eb1135e4 (diff)
downloadhdf5-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
Diffstat (limited to 'src/H5SM.c')
-rwxr-xr-xsrc/H5SM.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/H5SM.c b/src/H5SM.c
index f5eba52..a5b527a 100755
--- a/src/H5SM.c
+++ b/src/H5SM.c
@@ -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;