diff options
author | Sean McBride <sean@rogue-research.com> | 2021-02-19 17:25:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-02-19 17:25:44 (GMT) |
commit | 0a2a385accd2fc18c17bc3e36fd38f6a802e38df (patch) | |
tree | eaa89ebb07d35516fb188b84e7a329e9a3a85bab /src/H5B2leaf.c | |
parent | a6f1b6ce5398102c579821f5f6589b00e552d6d0 (diff) | |
download | hdf5-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/H5B2leaf.c')
-rw-r--r-- | src/H5B2leaf.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/H5B2leaf.c b/src/H5B2leaf.c index 199e011..20ace84 100644 --- a/src/H5B2leaf.c +++ b/src/H5B2leaf.c @@ -607,11 +607,11 @@ herr_t H5B2__swap_leaf(H5B2_hdr_t *hdr, uint16_t depth, H5B2_internal_t *internal, unsigned *internal_flags_ptr, unsigned idx, void *swap_loc) { - const H5AC_class_t *child_class; /* Pointer to child node's class info */ - haddr_t child_addr; /* Address of child node */ - void * child = NULL; /* Pointer to child node */ - uint8_t * child_native; /* Pointer to child's native records */ - herr_t ret_value = SUCCEED; /* Return value */ + const H5AC_class_t *child_class; /* Pointer to child node's class info */ + haddr_t child_addr = HADDR_UNDEF; /* Address of child node */ + void * child = NULL; /* Pointer to child node */ + uint8_t * child_native; /* Pointer to child's native records */ + herr_t ret_value = SUCCEED; /* Return value */ FUNC_ENTER_PACKAGE |