summaryrefslogtreecommitdiffstats
path: root/src/H5Fsuper_cache.c
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-27 17:16:52 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-27 17:16:52 (GMT)
commit8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2 (patch)
treeb6c708b99187fdb1f42fe46f454b8dcc66a8da05 /src/H5Fsuper_cache.c
parent9f61c26927ac74c4498cbebd7c9f2166d5f5b786 (diff)
downloadhdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.zip
hdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.tar.gz
hdf5-8fb9fb5d4dab0b7e9a9884611d0511e2a03228a2.tar.bz2
Revert "Oops, remove more C99 designated initializers for VS 2010 compatibility."
This reverts commit f907b511d06612dafc7814a7c30f2f3d2b76d52b.
Diffstat (limited to 'src/H5Fsuper_cache.c')
-rw-r--r--src/H5Fsuper_cache.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/H5Fsuper_cache.c b/src/H5Fsuper_cache.c
index ce216a2..b7c1dad 100644
--- a/src/H5Fsuper_cache.c
+++ b/src/H5Fsuper_cache.c
@@ -881,7 +881,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
@@ -893,7 +893,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")