summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper_cache.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 17:37:14 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 17:37:14 (GMT)
commit193702935442785cf752ed705b977b004ce29d30 (patch)
tree3cb9ba056b5d4f8ae347afc769afa3575bef9850 /src/H5Fsuper_cache.c
parente2d9cc558448224360d0641d225b9f71344c3e5a (diff)
downloadhdf5-193702935442785cf752ed705b977b004ce29d30.zip
hdf5-193702935442785cf752ed705b977b004ce29d30.tar.gz
hdf5-193702935442785cf752ed705b977b004ce29d30.tar.bz2
Initialize a couple of variables that the compiler does not realize are
initialized when they're passed by reference to functions.
Diffstat (limited to 'src/H5Fsuper_cache.c')
-rw-r--r--src/H5Fsuper_cache.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c
index ebf4a39..ecb98ed 100644
--- a/src/H5Fsuper_cache.c
+++ b/src/H5Fsuper_cache.c
@@ -872,7 +872,7 @@ H5F__cache_drvrinfo_get_final_load_size(const void *_image, size_t image_len,
{
const uint8_t *image = _image; /* Pointer into raw data buffer */
H5F_drvrinfo_cache_ud_t *udata = (H5F_drvrinfo_cache_ud_t *)_udata; /* User data */
- H5O_drvinfo_t drvrinfo; /* Driver info */
+ H5O_drvinfo_t drvrinfo = {.len = 0}; /* Driver info */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_STATIC