mirror of
https://github.com/HDFGroup/hdf5.git
synced 2025-02-05 15:42:32 +08:00
[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)
This commit is contained in:
parent
59c79aec2c
commit
877dfaaad7
@ -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")
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user