summaryrefslogtreecommitdiffstats
path: root/src/H5Pfapl.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/H5Pfapl.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/H5Pfapl.c')
-rw-r--r--src/H5Pfapl.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5Pfapl.c b/src/H5Pfapl.c
index ac91e1d..c085b71 100644
--- a/src/H5Pfapl.c
+++ b/src/H5Pfapl.c
@@ -4271,9 +4271,9 @@ herr_t
H5Pget_mdc_log_options(hid_t plist_id, hbool_t *is_enabled /*out*/, char *location /*out*/,
size_t *location_size /*out*/, hbool_t *start_on_access /*out*/)
{
- H5P_genplist_t *plist; /* Property list pointer */
- char * location_ptr; /* Pointer to location string */
- herr_t ret_value = SUCCEED; /* Return value */
+ H5P_genplist_t *plist; /* Property list pointer */
+ char * location_ptr = NULL; /* Pointer to location string */
+ herr_t ret_value = SUCCEED; /* Return value */
FUNC_ENTER_API(FAIL)
H5TRACE5("e", "ixxxx", plist_id, is_enabled, location, location_size, start_on_access);