[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:
Quincey Koziol 2015-10-09 23:55:35 -05:00
parent 59c79aec2c
commit 877dfaaad7

View File

@ -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")