summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorDavid Young <dyoung@hdfgroup.org>2019-11-13 17:39:24 (GMT)
committerDavid Young <dyoung@hdfgroup.org>2019-11-13 17:39:24 (GMT)
commit918e1a879d95114929a3f7abf1952bc6dd90c9d1 (patch)
tree512ed0961beb8522c55e9c5a51092d6205779b00 /src
parent193702935442785cf752ed705b977b004ce29d30 (diff)
downloadhdf5-918e1a879d95114929a3f7abf1952bc6dd90c9d1.zip
hdf5-918e1a879d95114929a3f7abf1952bc6dd90c9d1.tar.gz
hdf5-918e1a879d95114929a3f7abf1952bc6dd90c9d1.tar.bz2
Initialize a couple of return values to avoid used-before-set warnings.
Diffstat (limited to 'src')
-rw-r--r--src/H5SL.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/H5SL.c b/src/H5SL.c
index 5f00fb8..ec06395 100644
--- a/src/H5SL.c
+++ b/src/H5SL.c
@@ -1394,7 +1394,7 @@ H5SL_search(H5SL_t *slist, const void *key)
{
H5SL_node_t *x; /* Current node to examine */
uint32_t hashval = 0; /* Hash value for key */
- void *ret_value; /* Return value */
+ void *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOERR
@@ -1695,7 +1695,7 @@ H5SL_find(H5SL_t *slist, const void *key)
{
H5SL_node_t *x; /* Current node to examine */
uint32_t hashval = 0; /* Hash value for key */
- H5SL_node_t *ret_value; /* Return value */
+ H5SL_node_t *ret_value = NULL; /* Return value */
FUNC_ENTER_NOAPI_NOINIT_NOERR