summaryrefslogtreecommitdiffstats
path: root/src/H5VLnative_blob.c
diff options
context:
space:
mode:
authorSean McBride <sean@rogue-research.com>2021-02-19 17:25:44 (GMT)
committerGitHub <noreply@github.com>2021-02-19 17:25:44 (GMT)
commit0a2a385accd2fc18c17bc3e36fd38f6a802e38df (patch)
treeeaa89ebb07d35516fb188b84e7a329e9a3a85bab /src/H5VLnative_blob.c
parenta6f1b6ce5398102c579821f5f6589b00e552d6d0 (diff)
downloadhdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.zip
hdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.tar.gz
hdf5-0a2a385accd2fc18c17bc3e36fd38f6a802e38df.tar.bz2
Fixed uninitialized warnings (#360)
* Fixed all -Wsometimes-uninitialized warnings by initializing variables * Fixed all -Wconditional-uninitialized warnings by initializing variables * Commit alignment changes from running bin/format_source with clang version 10.0.1. Co-authored-by: Larry Knox <lrknox@hdfgroup.org>
Diffstat (limited to 'src/H5VLnative_blob.c')
-rw-r--r--src/H5VLnative_blob.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/H5VLnative_blob.c b/src/H5VLnative_blob.c
index 4fa8a2a..170a5bc 100644
--- a/src/H5VLnative_blob.c
+++ b/src/H5VLnative_blob.c
@@ -104,7 +104,7 @@ H5VL__native_blob_get(void *obj, const void *blob_id, void *buf, size_t size, vo
H5F_t * f = (H5F_t *)obj; /* Retrieve file pointer */
const uint8_t *id = (const uint8_t *)blob_id; /* Pointer to the disk blob ID */
H5HG_t hobjid; /* Global heap ID for sequence */
- size_t hobj_size; /* Global heap object size returned from H5HG_read() */
+ size_t hobj_size = 0; /* Global heap object size returned from H5HG_read() */
herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_PACKAGE