diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-13 17:37:14 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:17:27 (GMT) |
commit | 1f7fdfe14cf47fbb7e09dd389df1005e3b05b2cc (patch) | |
tree | 711aa3a50d36359c49d30d475a67c628e6531189 /src | |
parent | ca0fcd34f3360d6fa1f7c630cfa3f54c95504d3e (diff) | |
download | hdf5-1f7fdfe14cf47fbb7e09dd389df1005e3b05b2cc.zip hdf5-1f7fdfe14cf47fbb7e09dd389df1005e3b05b2cc.tar.gz hdf5-1f7fdfe14cf47fbb7e09dd389df1005e3b05b2cc.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')
-rw-r--r-- | src/H5Fsuper_cache.c | 2 | ||||
-rw-r--r-- | src/H5HFtiny.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c index ec816d5..110741a 100644 --- a/src/H5Fsuper_cache.c +++ b/src/H5Fsuper_cache.c @@ -876,7 +876,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 diff --git a/src/H5HFtiny.c b/src/H5HFtiny.c index 0c27180..79d790b 100644 --- a/src/H5HFtiny.c +++ b/src/H5HFtiny.c @@ -377,7 +377,7 @@ done: herr_t H5HF_tiny_remove(H5HF_hdr_t *hdr, const uint8_t *id) { - size_t enc_obj_size; /* Encoded object size */ + size_t enc_obj_size = 0; /* Encoded object size */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_NOAPI_NOINIT |