diff options
author | David Young <dyoung@hdfgroup.org> | 2019-11-27 17:16:52 (GMT) |
---|---|---|
committer | David Young <dyoung@hdfgroup.org> | 2020-05-20 14:19:38 (GMT) |
commit | e07ca4b4a537733deb8a0af491b60e6e62eb4f3f (patch) | |
tree | df0d91f8801bd5d0c89a8883c5c3def015b21237 /src | |
parent | 975a360db28abb7050dc7bf0e0c2b0dac466badd (diff) | |
download | hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.zip hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.tar.gz hdf5-e07ca4b4a537733deb8a0af491b60e6e62eb4f3f.tar.bz2 |
Revert "Oops, remove more C99 designated initializers for VS 2010 compatibility."
This reverts commit f907b511d06612dafc7814a7c30f2f3d2b76d52b.
Diffstat (limited to 'src')
-rw-r--r-- | src/H5Fsuper_cache.c | 3 | ||||
-rw-r--r-- | src/H5HGcache.c | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c index 460a732..6ec3507 100644 --- a/src/H5Fsuper_cache.c +++ b/src/H5Fsuper_cache.c @@ -885,7 +885,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 @@ -897,7 +897,6 @@ H5F__cache_drvrinfo_get_final_load_size(const void *_image, size_t image_len, HDassert(*actual_len == image_len); HDassert(image_len == H5F_DRVINFOBLOCK_HDR_SIZE); - drvrinfo.len = 0; /* Deserialize the file driver info's prefix */ if(H5F__drvrinfo_prefix_decode(&drvrinfo, NULL, &image, udata, TRUE) < 0) HGOTO_ERROR(H5E_FILE, H5E_CANTDECODE, FAIL, "can't decode file driver info prefix") diff --git a/src/H5HGcache.c b/src/H5HGcache.c index c52118f..751bbcc 100644 --- a/src/H5HGcache.c +++ b/src/H5HGcache.c @@ -206,7 +206,7 @@ static herr_t H5HG__cache_heap_get_final_load_size(const void *image, size_t image_len, void *udata, size_t *actual_len) { - H5HG_heap_t heap; /* Global heap */ + H5HG_heap_t heap = {.size = 0}; /* Global heap */ herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_STATIC |