summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper.c
diff options
context:
space:
mode:
authorQuincey Koziol <koziol@hdfgroup.org>2015-10-10 04:55:35 (GMT)
committerQuincey Koziol <koziol@hdfgroup.org>2015-10-10 04:55:35 (GMT)
commit877dfaaad78242cc7aa7fdb1beb60a5e05800928 (patch)
tree20b325413272c447486b48fc02cc4a22ab5628fe /src/H5Fsuper.c
parent59c79aec2caa0fd590e6410cfa8bb55850f558c1 (diff)
downloadhdf5-877dfaaad78242cc7aa7fdb1beb60a5e05800928.zip
hdf5-877dfaaad78242cc7aa7fdb1beb60a5e05800928.tar.gz
hdf5-877dfaaad78242cc7aa7fdb1beb60a5e05800928.tar.bz2
[svn-r28024] Description:
Clear buffer for driver info block before writing it to the file. (Avoids 'uninitialized memory read' warning from valgrind) Tested on: MacOSX/64 10.10.5 (amazon) w/serial & valgrind (too minor for h5committest)
Diffstat (limited to 'src/H5Fsuper.c')
-rw-r--r--src/H5Fsuper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5Fsuper.c b/src/H5Fsuper.c
index 50f6b06..c6b1c83 100644
--- a/src/H5Fsuper.c
+++ b/src/H5Fsuper.c
@@ -934,6 +934,7 @@ H5F__super_init(H5F_t *f, hid_t dxpl_id)
HDassert(driver_size <= H5F_MAX_DRVINFOBLOCK_SIZE);
/* Encode driver-specific data */
+ HDmemset(dbuf, 0, sizeof(dbuf));
if(H5FD_sb_encode(f->shared->lf, info.name, dbuf) < 0)
HGOTO_ERROR(H5E_FILE, H5E_CANTINIT, FAIL, "unable to encode driver information")